cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know all about tools for creatives that work seamlessly with Dropbox, like Adobe? Well, check it out right 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: 

Success upload file but can't open file !

Success upload file but can't open file !

Alain1010
Explorer | Level 3

Hello,

I uploaded a file in my dropbox thanks to the API. But for each file uploaded, it is 15 bytes and I can't open it in dropbox.

Can you tell me how to fix this issus please?

I'm using a SDK Javascript.

Thanks a lot

3 Replies 3

Re: Success upload file but can't open file !

Greg-DB
Dropboxer

If the files you're trying to upload aren't each 15 bytes, it sounds like there may be an issue with the upload implementation you're using. Can you share the code you're using so we can take a look?

Re: Success upload file but can't open file !

Alain1010
Explorer | Level 3

Hello,

Thank you for your reply.

dropboxConnect.filesUpload({ 
     path: globalData.dropboxClientsFolder + personId + '/' + dealId + '/' + file.name,
     contents: req.files.file
})

 

Re: Success upload file but can't open file !

Greg-DB
Dropboxer

Thanks for following up. I just gave that sample a try myself, and it worked fine for me. I was able to upload multiple files of various sizes correctly.

Can you let me know more about where/how you're running this? For the example, did you follow the instructions here for running it? 

And for your own code, what is req.files.file exactly? Can you step in with a debugger to check the value? (You may also want check the actual 15 bytes of content that is uploaded to see what it is actually.)

Can you also double check if the original local file you're uploading is itself accidentally only 15 bytes?

Poll
Do you work or study in the creative industry? If so, which area?
If you use Adobe, don't forget to check out our latest integrations update here.
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    Alain1010 Explorer | Level 3
What do Dropbox user levels mean?
Need more support?