You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
technocelebes
5 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
5 years agoDropbox Staff
[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.5,917 PostsLatest Activity: 11 days ago
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!