Want to know more about Dash? Check out how Amy uses Dropbox and Dash to make her day easier here! 

Forum Discussion

chirag-dev's avatar
chirag-dev
New member | Level 2
3 years ago

After upload image crashed in dropbox

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 ?

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    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.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,017 PostsLatest Activity: 2 days ago
401 Following

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or 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!