Join the Conversation: The Dash Community Is Now Open! ✨🎉
Forum Discussion
Artem C.2
11 years agoNew member | Level 1
Fulfilling a File Request via HTTP
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.
12 Replies
- Greg-DB11 years ago
Dropbox Community Moderator
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.
- Artem C.211 years agoNew member | Level 1
Ok, I hope to see it in the future versions of your API. Thank you Gregory!
- Steve M.6210 years agoNew member | Level 1
Has this changed? I am trying to automate anonymous upload (to a business account) via curl. Is this possible now? Thanks.
- Richard P.10 years ago
Super User alumni
No, no change.
- Greg-DB10 years ago
Dropbox Community Moderator
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
- Steve M.6210 years agoNew member | Level 1
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!
- Greg-DB10 years ago
Dropbox Community Moderator
I see, unfortunately, no, there isn't a way to restrict tokens to that level. I'll send this along as a feature request.
- cbrislain9 years agoNew member | Level 2
I'm actually also interested in such a feature. Still no support in API?
- Hans Kristian M9 years agoNew member | Level 2+1
would be an easy and powerful way to ship files between systems and add to the usefulness of dropbox - Greg-DB9 years ago
Dropbox Community Moderator
This is still not available in the API. Thanks for the additional feedback!
About 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!