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

depotsy's avatar
depotsy
Explorer | Level 3
6 months ago

Direct file upload to Dropbox

Hello!

 

I'm writing a small Node.js web app to upload files to Dropbox.

 

Login to the application will be via Dropbox OAuth. After this the user will be able to send files to my shared folder

 

Typically the file is first uploaded to the server and then uploaded to Dropbox.

However, this results in wasted time and resource consumption when working with large files.

 

Is there a way to upload a file directly from the browser under the user's own Dropbox account?

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

    depotsy As Здравко said, you can implement uploads client-side.

     

    And while you don't need to use an official SDK, we do recommend doing so if possible. For example, the official Dropbox JavaScript SDK supports running in client-side browser JavaScript.

     

    There are a few options for uploading to the user's own Dropbox account:

    Or if don't want to rely on them having a shared folder with you, you can use copy references to copy files between accounts:

    Or if you don't want to rely on the user having their own Dropbox account at all, there is an option for client-side uploading to your own account without exposing your access token to the user:

    • filesGetTemporaryUploadLink for smaller files; you would run this server-side in your account, then pass the link to the user's browser and upload to the link from there

     

     

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    Hi depotsy,

    It depends on how large are those files. One option, for not very large files, is usage of Dropbox Saver; take a look here for example. Other option is implemented client side application (in addition to your server side application) working with upload session; largest possible file would be 350GB.

    Hope this gives direction.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,885 PostsLatest Activity: 12 hours ago
326 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!