Skip to content

Commit

Permalink
Actually adds data to file (google drive)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Derohanian committed Nov 22, 2012
1 parent 9e1a9b5 commit 3d571ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/JBrowse/View/Cloud/gdriveUpload.js
Expand Up @@ -18,6 +18,7 @@ define(["dojo/_base/declare"], function(declare){
*/
insertFile: function(fileData, callback) {
console.log ("running insertFile");
alert (Object.keys(fileData));
const boundary = '-------314159265358979323846';
const delimiter = "\r\n--" + boundary + "\r\n";
const close_delim = "\r\n--" + boundary + "--";
Expand Down
2 changes: 1 addition & 1 deletion src/JBrowse/View/Track/ExportMixin.js
Expand Up @@ -197,7 +197,7 @@ return {
window.location.href="data:application/x-"+format.toLowerCase()+","+escape(output);
} else if(saveto === 'Google Drive') {
var gdriveUploader = new gdriveUpload;
gdriveUploader.uploadFile(["name",output, format], null);
gdriveUploader.uploadFile({name:"name", data:output, format:format}, alert("upload complete"));
}
},

Expand Down

0 comments on commit 3d571ee

Please sign in to comment.