cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

After upload image crashed in dropbox

After upload image crashed in dropbox

chirag-dev
New member | Level 2

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 1

Greg-DB
Dropbox Staff

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?