We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.

Forum Discussion

ImpulseWebDev's avatar
ImpulseWebDev
Explorer | Level 3
2 years ago

Files uploaded with save_url endpoint not visible in dropbox when complete.

Currently when I post a file url to the 'https://api.dropboxapi.com/2/files/save_url' endpoint as described in the docs, and then check using the 'https://api.dropboxapi.com/2/files/save_url/check_job_status' when the second endpoint returns a status of:

 

 

{
    ".tag": "complete",
    "name": "test (2).png",
    "path_lower": "/aia ats hubspot/(hubspot)/test (2).png",
    "path_display": "/AIA ATS HubSpot/(HubSpot)/test (2).png",
    etc..
}

 

 

However when I follow the path either manually or by copying from the response directly, there is always an alert that the file does not exist.

The save_url endpoint seems to be recognizing other files of the same name from previous tests as it is appending unique names to the file (ex: test (1).png) however I am not able to locate them within dropbox.

It seems like I might be missing something, any ideas why they API would show successes but still not see the file within dropbox visually?
  • That response should indicate that the file was saved successfully, so make sure you're looking in the right location when verifying that manually, e.g., on the Dropbox web site.

     

    For instance, check that you're signed in to the same account that you're connected to on the API (or at least, an account with the relevant shared folder if you're uploading to a shared folder).

     

    Also, if the account is on a team with the "team space" configuration, note that by default these API calls operate in the "member folder" of the connected account, not the team space, so make sure you're looking inside the member folder (i.e., the folder with the member's name) and not the team space itself. (You can configure API calls to operate in the team space instead though. To do so, you'll need to set the "Dropbox-API-Path-Root" header. You can find information on this in the Team Files Guide.)

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    That response should indicate that the file was saved successfully, so make sure you're looking in the right location when verifying that manually, e.g., on the Dropbox web site.

     

    For instance, check that you're signed in to the same account that you're connected to on the API (or at least, an account with the relevant shared folder if you're uploading to a shared folder).

     

    Also, if the account is on a team with the "team space" configuration, note that by default these API calls operate in the "member folder" of the connected account, not the team space, so make sure you're looking inside the member folder (i.e., the folder with the member's name) and not the team space itself. (You can configure API calls to operate in the team space instead though. To do so, you'll need to set the "Dropbox-API-Path-Root" header. You can find information on this in the Team Files Guide.)

    • ImpulseWebDev's avatar
      ImpulseWebDev
      Explorer | Level 3

      Ah, that was indeed my issue Greg. That header has solved my confusion.

      I was adding the path to the end of a teams folder url, and that was why it did not exist as you suspected.

      Thank you for getting me straightened out!

About Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,875 PostsLatest Activity: 2 years ago
323 Following

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 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!