Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hello,
I have used following code to upload image to dropbox
https://www.npmjs.com/package/dropbox-v2-api#downloading-issues
const downloadStream = dropbox({
resource: 'files/download',
parameters: { path: '/source/file/path' }
});
const uploadStream = dropbox({
resource: 'files/upload',
parameters: { path: '/target/file/path' }
}, (err, result, response) => {
//upload finished
});
downloadStream.pipe(uploadStream);
I have successfully upload image but image crashed in dropbox, Can you please help me on this ?
It looks like you're attempting to download a file from Dropbox and then re-upload that file to Dropbox, but it sounds the uploaded file isn't formatted properly or doesn't contain the expected data and so is not successfully displaying.
Dropbox doesn't apply any additional processing or encoding to uploads, so you should make sure you're just uploading the exact/correct bytes you want stored. I see you're using a third party library 'dropbox-v2-api' though. As that's not made by Dropbox, we unfortunately can't offer support for that. You'll need to refer to the documentation or support resources for that library for information on how to use that to perform such operations.
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!