You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Roman_argon's avatar
Roman_argon
Explorer | Level 4
6 years ago

Download failed when I use method save_url

Hi! I want to upload file to my dropbox with URL. I use swift and method:

client.files.saveUrl(path: pathDropbox, url: "https://www.google.com/imgres?imgurl=ht..... ").response....

I get response with 
asyncJobId, after it I call method: 

client.files.saveUrlCheckJobStatus(asyncJobId: jobId).response......
But always get response(not error): 

{

    ".tag" = failed;

    failed =     {

        ".tag" = "download_failed";

    };

}

I used different URLs but no one was successful. 

Best regards!

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

    It sounds like you're trying to save a file, presumably an image file, but based on the truncated URL you shared here, the URL you're using is actually to a Google Images HTML page, not to the image itself.

    Accordingly, the save operation is failing. If you're trying to save an image file, get and use the actual URL to the image itself.

    • Roman_argon's avatar
      Roman_argon
      Explorer | Level 4

      Thank you for the quick help! It really was my mistake and now everything works.
      But I have another problem - I get "download failed" when I try to load a big file(about 200 Mb). Are there some limits on the size of a file that I want to load?

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,902 PostsLatest Activity: 9 hours ago
332 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!