Forum Discussion

nishantcyno's avatar
nishantcyno
Explorer | Level 4
9 years ago

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.

13 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago
    I can't offer a Skype meeting, but I'm happy to help in the forum here.

    Please share the API calls and resulting unexpected responses that are giving you trouble so we can help.
  • nishantcyno's avatar
    nishantcyno
    Explorer | Level 4
    9 years ago

    Hi Greg, 

     

    The below screenshot is from my client testing end he got stuck inside 0Byte file issue, using your given code, which worked perfectly on my dropbox(testing). 

     

     

     

    The alternate of above issue is that we can move the files which is already found in that location already by renaming it in catch block. But it also not woring on business but working fine on my dropbox.

     

    I don't know what is going on. Pls fix this and pls understand what is the problem. If you need account info I will happy to share with you. 

     

     

     

     

    The error showing is :

    ErrorResponse: [403] u"A file with that name already exists at path
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago

    It looks like you're running in to two different errors here, so I'll address them separately.

     

    The first one, the 404 in the first screenshot, indicates that there's nothing found at the specified path in the Dropbox account. In the bottom half of that screenshot you're just showing a folder on the local filesystem, not the Dropbox account. I'm not sure what the output above the error is, but it looks like you're trying to delete the file at that path, so perhaps you had just already done so? 

     

    Also, you should revoke that access token in the first screenshot now that you've shared it publicly.

     

    The second error indicates that there is already something at the path that you're trying to move the file to.

     

    In both cases, it may help to use getMetadataWithChildren while you debug the issues so that you can better see what the current contents of the account are.

About Dropbox API Support & Feedback

Node avatar for 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!