cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

File uploading and downloading in business account.

File uploading and downloading in business account.

nishantcyno
Explorer | Level 4

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 13

nishantcyno
Explorer | Level 4

Hi Greg,

 

Can we have a skype meeting just to resolve issue quickly. I am facing too much issue with Client Business account.

 

I am facing another issue now with Business Dropbox, on my account script works ok. The difference between my personal dropbox and client one is that Client has 16 TBs of data and too much file but I have only 10-20 MBs.

 

Now, the situation is I have following files in my dropbox folder e.g Unfiled Documents

1. UR-032085 - PLAN - 1.pdf

2. UR-032085 - Purchase Order - Leigh Lo Nigro.pdf

3. UR-032085 - Quote - Emma Pioch 101 Wattle Avenue.pdf

 

When I run script : Script has to create a folder and paste above files from its source to that newly created folder. But As I tested. Once I started my script It can't get that folders with API calls. But I reload the script It get the newly created directory. I think synching is not performing well with Business one. 

 

But my dropbox is working ok with simillar situation.

 

Pls arrange a skype meeting asap.

 

With Regards

Nishant Sharma

nishantsharma0131@outlook.com

Greg-DB
Dropbox Staff
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
Explorer | Level 4

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). 

 

IMG_04022017_103527.png

 

 

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. 

 

 

move function..PNG

 

 

The error showing is :

ErrorResponse: [403] u"A file with that name already exists at path

Greg-DB
Dropbox Staff

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    nishantcyno Explorer | Level 4
What do Dropbox user levels mean?