cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

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: 
Highlighted

API Can not download files under app Permission type App folder using API?

New member | Level 2
New member | Level 2

I created two apps one app have full access and another have folder permission access only

now when I use generated token from full access permission the php API download file working fine

but when I use the generated token from folder permission the api return status code 404 ?

1 Reply 1
Highlighted

Re: API Can not download files under app Permission type App folder using API?

Dropboxer
Dropboxer

When using an access token for an "app folder" app, that token will only be able to access files inside the special app folder created specifically for the app. By default, this is at /Apps/<app folder name>. That app folder is the implied root for any paths referenced by an access token for an app folder app.

 

So for example, if a full Dropbox app access token makes an API call to access "/test.txt", the Dropbox API will look for something at "/test.txt" in the account.

 

If an app folder app access token makes an API call to access "/test.txt", the Dropbox API will look for something at "/Apps/<app folder name>/test.txt" in the account. In that case, if there's nothing at "/Apps/<app folder name>/test.txt" you'll get an error. 

 

By the way, to download files, make sure you're using /2/files/download (or the respective method in an SDK or library) to download files, and not /1/files, as the latter is part of API v1, which is deprecated and being retired soon.

Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?