One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
nishantcyno
9 years agoExplorer | Level 4
File uploading and downloading in business account.
Hi Dropboxer,
I am working on dropbox api in PHP and managing file and folder through running a script from server. All things are working file only issue which I am facing is to uploading a existing or simply downloading a file.
I have successfully placed a API call and file is downloading inside my root directory but it is showing only 0Byte and same for placing uploading, I have received this 0Byte file on my dropbox.
Why this is happening. I have tested script on Basic version of my dropbox working fine. But on Business account (my client's) I couldn't able to do this.
Pls tell me know is there any problem with Buisness account.
- Greg-DB
Dropbox Staff
I'll be happy to help this, but I'll need some more information. Please reply with:
- the name and version of the platform and SDK/library you are using
- the steps to reproduce the issue
- the full text of any error or output
- the relevant code snippet(s)- nishantcynoExplorer | Level 4
Thanks,
Following the tutorials from https://www.dropbox.com/developers-v1/core/sdks/php
-I'm using Composer for your project's dependencies, I have just add dropbox-sdk to your composer.json instead of downloading the SDK.
dropbox/dropbox-sdk": "1.1.*"
-I have successfully moved files from one folder to another folder through move($sourcepath,$destpath) API function. But I have a particular case where file may already exits at destination. So I have take a file from my dropbox $sourcepath and download in my system and then upload it on destination path. By doing this existing file remain there and new file got renamed and saved to dropbox $destpath. But showing 0Byte along with file name. Below screenshot shows a simillar issue inside my client's dropbox account. File size shows 0Byte.
I have tried same with my basic Dropbox account and I am able to do it successfully. Below is the output Which I want for my client's Dropbox account.
- I am doing this by PHP script following snippet shows the my particular logic
- Greg-DB
Dropbox Staff
Apologies for the delay! I wasn't notified of your reply for some reason. Are you still having this issue?
If so, can you share your first two screenshots as links? They didn't come through in the post.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,945 PostsLatest Activity: 53 seconds 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!