Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
technocelebes
6 years agoNew member | Level 2
PHP Codeigniter - Upload file to Dropbox via HTTPS always empty
I'm trying to upload file using Kunnu Dropbox API. It works really well in localhost. But, when I try to upload from live server, it always upload empty file. What am i missing ? Here is the code ...
Greg-DB
Dropbox Community Moderator
6 years ago[Cross-linking for reference: https://stackoverflow.com/questions/62998138/php-codeigniter-upload-file-to-dropbox-via-https-always-empty ]
We can't provide support for that library itself, as it's not made by Dropbox. That said, it is possible to upload an empty file via the Dropbox API, so it sounds like this code isn't successfully retrieving the local file data to upload when running on your server, and so is issuing the upload API call to the API without any actual file data, resulting in the empty uploaded file.
It looks like you're specifying the local file via the '$pathToLocalFile' parameter, so to troubleshoot this you should make sure that that value is what you expect, and that the path refers to the right file locally on the server, and that your code has the ability to access that path.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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, Facebook or Instagram.
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!