We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
Alain1010
5 years agoExplorer | Level 3
Success upload file but can't open file !
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 SD...
Greg-DB
5 years agoDropbox Staff
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?
- Alain10105 years agoExplorer | Level 3
Hello,
Thank you for your reply.
dropboxConnect.filesUpload({ path: globalData.dropboxClientsFolder + personId + '/' + dealId + '/' + file.name, contents: req.files.file
})I did the test with the sample code of your github. And I have the same problem.- Greg-DB5 years agoDropbox Staff
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?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,875 PostsLatest Activity: 2 months agoIf 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!