Forum Discussion

satishshelokar's avatar
satishshelokar
New member | Level 2
5 years ago

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:/test/shirt.png"

 

Content-Type: application/json
below is json body
 
{
    "path""/shirt.png"
}
after post get response like 
{
    "error_summary""path/not_found/...",
    "error": {
        ".tag""path",
        "path": {
            ".tag""not_found"
        }
    }
}
 
Thank you

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    5 years ago

    The /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

Node avatar for 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!