Archived from the Transloadit support forum. Originally posted on February 20, 2014; details may be outdated, see our docs for current behavior. Original thread
I’m trying to use the dropbox dropin together with transloadit,
For this to work, the http/import should start as soon as I execute the transloadit() function.
So I’ve made a jsfiddle with the example from the transloadit docs
Shouldn’t the import start as soon as the page loads?
Because i’m not going to select a second file using the to upload, I just want to import the file from a url.
The docs example: http://jsfiddle.net/ludohelder/n8x8D/
The way I use it in in combination with dropbox (I can’t use the dropbox api in jsfiddle):
Dropbox.choose({
success: function(files) { $(‘#dropbox-form’).transloadit({ wait: true, triggerUploadOnFileSelection: true,
params: {
auth: { key: "REDACTED" },
steps: {
import: {
robot: "/http/import",
url: files[0]
},
resize: {
robot: "/image/resize",
use: ["import"],
width: 130,
height: 130
}
}
}
});
},
linkType:'direct',
multiselect:true,
extensions:['image']
});