Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I generated a public file request in Dropbox and would like to write some javascript code to programmatically upload a file which is generated on the flow (e.g. var myJsonString = JSON.stringify(myArray)) to the public folder.
As an example, I created this public folder:
You can programmatically upload to a file request using the standard Dropbox `/upload` API. I've tested this and it works fine.
I've described this on Stack Overflow here:
https://stackoverflow.com/questions/50656407/dropbox-upload-file-to-public-file-request-with-javascr...
Thanks for sharing that grokify! To highlight one important note from grokify's post, this only works if you have access to the account for the owner of the file request. I.e., this method is for uploading to the same folder that the file request happens to also be configured for (just like you can upload to any folder if you have that access, via an access token). It does not offer a way to upload to any arbitrary file request as another user, like the file request web site allows.
Also, be aware that the designated folder for a file request can change at any time, so it would be best to check the folder path for the file request using /2/file_requests/list or /2/file_requests/get.
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!