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

sgujf's avatar
sgujf
Explorer | Level 3
6 years ago

Postponed Dropbox saver

Hi,

I want users to upload a BLOB using the Dropbox Saver. Because the Saver only supports URLs, I upload the BLOB to my server and it generates a temporary URL I can than submit to Dropbox. This means a user click on Save -> start the upload -> once successful, a callback to the Dropbox.save() API.

However, Safari does not recognise this as opening a popup from a click event and silently kills it (also, Internet Explorer 11 will first ask you permission to open the popup in the future, but this can explained to users).

I noticed while looking into the Dropbox API source code that the Dropbox.save({ files: { ... }}) does support callbacks for the URL value, but this is not yet documented. Is there any way in which I can use those to postponed uploading files to my server till after opening the popup?

Some of the files I'll want to upload are over 20 MB, so there is no guarantee that they'll be done by the time someone has selected a destination in the Dropbox save dialog.

  • Thanks for the detailed post. No, I'm afraid I can't offer a way to use that undocumented functionality. Any undocumented functionality like this may be in flux and subject to break or dissapear without notice. 

    I'll pass this along as a feature request to officially document and support this (in addition to blob support in the first place) but I can't promise if or when that might be implemented. 

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

    Thanks for the detailed post. No, I'm afraid I can't offer a way to use that undocumented functionality. Any undocumented functionality like this may be in flux and subject to break or dissapear without notice. 

    I'll pass this along as a feature request to officially document and support this (in addition to blob support in the first place) but I can't promise if or when that might be implemented. 

    • sgujf's avatar
      sgujf
      Explorer | Level 3

      Thank you for your reply.

      So that means for now I'll have to document how my users can disable the popup blocker in Safari. Turns out another feature suffers from this problem as well, so might be useful to add a note or two anway.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 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!