anchor.diff:        var getGoogleFiles = function (showAlertIfNoFilesSelected) {
           // if 'selectedNodes' variable exists and is an array then the user has selected google drive files
           if (typeof selectedNodes !== 'undefined' && selectedNodes instanceof Array && selectedNodes.length > 0) {
  -          disableSubmit();
  -          // kick of the fetching of the google files - this will recursively fetch all chunks and call 'finishUpload' when done
  -          getGoogleFileChunk(0, "<%= @dataset.id %>", 0, chunkSize-1); 
  +          // if the user isn't tring to upload too much data, kick off the upload
  +          if (totalUploadSize() < maxUploadSize) {
  +            disableSubmit();
  +            // kick of the fetching of the google files - this will recursively fetch all chunks and call 'finishUpload' when done
  +            getGoogleFileChunk(0, "<%= @dataset.id %>", 0, chunkSize-1); 
  +          } else {
  +            alertUploadTooLarge();
  +          }
           // otherwise, no google files selected, present 'no files selected' alert or call 'finishUpload'
           } else {
             if (showAlertIfNoFilesSelected) {
  
positive.code:               localFileUploadCount++;
                // if the number of 'done' files equals the number of selected files, then all uploads are done
                // handle google files (if there are any), which will also submit main form
                if (localFileUploadCount == localFileCount) {
                  getGoogleFiles(false);
                }
            },
  
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};
                // increment the total upload file size counter
                //totalUploadSize += 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) {
                  if (totalUploadSize() > maxUploadSize) {
                    alertUploadTooLarge();
                  } else {
                    disableSubmit();
                    data.submit();
                  }
                });
                localFilesToUpload.push(data);
            },
            change: function (e, data) {
              // clear the list of files to upload and revert to default submit handler (note: 'add' may be subsequently called)
              $("#submit_btn").off('click');
              $("#submit_btn").on('click.googleFiles', function(ev) { getGoogleFiles(true) });
              localFilesToUpload = [];
            },
            progress: function (e, data) {
                var progress = parseInt(data.loaded / data.total * 100, 10);
  