We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
satishshelokar
5 years agoNew member | Level 2
get_temporary_link not uploading file from local system
Hi Team,
while using https://api.dropboxapi.com/2/files/get_temporary_link
tried relative and absolute path
"path": "/shirt.png"
"path": "http://localhost/test/shirt.png"
"path": "D...
Greg-DB
Dropbox Community Moderator
5 years agoThe /2/files/get_temporary_link endpoint does not offer a way to upload files to Dropbox. It is a way to get a link that can be used to download file data from Dropbox. The 'path' value should be the relative path of the file in the connected account, which would look like "/shirt.png". A "path/not_found" error indicates that there wasn't anything found at that path in the connected Dropbox account.
If you instead need to upload to Dropbox, you can use the /2/files/upload endpoints to upload file data directly to Dropbox. (Or, if you do need a link that can be used to upload file data to Dropbox, you can use /2/files/get_temporary_upload_link.)
In any case, I recommend reading the File Access Guide for information on interacting with files in Dropbox via the API.
About Discuss Dropbox Developer & API
Make connections with 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!