Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
If I generated a file request URL, is there any way to upload a file to it programmatically? For example, here is a pseudo-curl request that I imagine:
curl -XPOST https://www.dropbox.com/request/2PY0o6x3LlNSZy38Yjsj?name --data @file.jpg
I know I could use the HTTP API to upload a file to an app folder instead, but it gives the client both read and write access to the target directory, and it requires me to share my access token if I’m to give this upload script to a friend or a colleague.
Unfortunately, no, there currently isn't an API for uploading to a file request, but I'll be sure to pass this along as a feature request.
Ok, I hope to see it in the future versions of your API. Thank you Gregory!
Has this changed? I am trying to automate anonymous upload (to a business account) via curl. Is this possible now? Thanks.
No, no change.
That's correct, no change on this for file requests.
Steve, depending on your use case though, using the Dropbox API to upload directly may work for you:
https://www.dropbox.com/developers/documentation/http/documentation#files-upload
Hmm. In my use case, the auth token could potentially fall into untrusted hands. I did not see anything in the API that would let me limit token permissions to strictly uploading a file. It seems like the token would be granted read as well as write permissions, plus some account-related stuff as well.
Is there a way to restrict a token to only permit uploading and no other access? Thanks!
I see, unfortunately, no, there isn't a way to restrict tokens to that level. I'll send this along as a feature request.
I'm actually also interested in such a feature. Still no support in API?
Hi there!
If you need more help you can view your support options (expected response time for a 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!