Skip to content

Commit

Permalink
fixed dropbox binary files
Browse files Browse the repository at this point in the history
  • Loading branch information
antimatter15 committed May 13, 2011
1 parent 729b80f commit 287ff9c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Binary file removed cloudsave.zip
Binary file not shown.
4 changes: 1 addition & 3 deletions hosts/dropbox/dropbox.js
@@ -1,12 +1,11 @@
//uses multipart helper function.


Hosts.dropbox = function uploadDropbox(req, callback){
Hosts.dropbox = function uploadDropbox(file, callback){
var dropbox = new ModernDropbox(Keys.dropbox.key, Keys.dropbox.secret)

var poll = function(){
if(dropbox.isAccessGranted()){
getRaw(req, function(file){
var fname = file.name;
var folder = ''

Expand Down Expand Up @@ -36,7 +35,6 @@ Hosts.dropbox = function uploadDropbox(req, callback){

})

})
}else{
setTimeout(poll, 300);
}
Expand Down

0 comments on commit 287ff9c

Please sign in to comment.