anchor.diff:          //$('#deposit_main_form').submit();
           alert("form will be posted now");
         };
  -      //var getGoogleFileChunk = function (fileid, path, dataset_id, size, byte_from, byte_to, is_last) {
  -      //  $.ajax({
  -      //    url: "<%= getgdrivefile_path %>.json",
  -      //    data: {fileid: fileid, path: path, dataset_id: dataset_id, size: size, byte_from: byte_from, byte_to: byte_to },
  -      //    success: function (data) {
  -      //      var progress = parseInt(Math.min(data["byte_to"], data["filesize"]) / data["filesize"] * 100, 10);
  -      //      updateProgress(data["path"], progress);
  -      //      console.log(data);
  -      //      // get the next chunk if there's still data to get
  -      //      if (byte_to < size) {
  -      //        getGoogleFileChunk(fileid, path, dataset_id, size, byte_to + 1, byte_to + chunkSize, is_last);
  -      //      } else if (is_last) {
  -      //        finishUpload();
  -      //      }
  -      //    } 
  -      //  });
  -      //};
  +      // fetch the selected google files in chunks - each successfully fetched chunk will trigger the fetching of the next chunk
         var getGoogleFileChunk = function (index, dataset_id, byte_from, byte_to) {
           var fileid = selectedNodes[index].id;
           var path = relpath_to_node($("#jstree_div").jstree(), selectedNodes[index]);
  
positive.code:         }
        };
        // by default, when user presses submit, handle google uploads 
        $('#submit_btn').on('click.googleFiles', function (ev) { uploadGoogleFiles(true) });
        //$('#submit_btn').on('click.noFiles', function(ev) { alertNoFiles() });
        //$('#submit_btn').on('click.googleFiles', function (ev) { uploadGoogleFiles() });
        $('.file_upload').fileupload({
            dataType: 'json',
            singleFileUploads: true,
  
negative.code:               // pass the webkitRelativePath value (which contains the relative path to the file) to the form handler 
                // so it can build dir structure, and also file actual size
                data.formData = {"path": data.files[0].webkitRelativePath, "size": data.files[0].size};
                // remove default click handler for submit button that handled google drive - this will be instead be called when uploads done
                $("#submit_btn").off('click.googleFiles');
                // and add new click handler - note this 'add' function is called once for each selected file
                $("#submit_btn").on('click', function (ev) {
                    disableSubmit();
                    data.submit();
                });
                localFileCount++;
  