cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you interested in learning how media industry leaders use Dropbox Replay? Register for our webinar here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with download Dropbox API

Problem with download Dropbox API

duynh7401
Explorer | Level 4

When I use the dropbox API to download a file, the file will be saved in the root path of my code(Q4.zip) as the picture. How can I download it from the browser and choose the file path which stored it in my computer? I'm using Reactjs as frontend and Spring boot for backend.

 

.Screen Shot 2022-04-10 at 23.18.35.png

1 Reply 1

Greg-DB
Dropbox Staff

When you download file data from the Dropbox API, the API response will contain the requested data in the response body. Exactly what you do with that data, and how, is up to you and will depend on your environment. That's not part of the Dropbox API and is out of our control, so I can't tell you exactly what you can or should do. For example, you may use some interface for your local platform for interacting with your local filesystem, in which case you would generally have your code specify the path on the local filesystem for where to write the file. Or, if you're passing the download to the end-user's web browser, the browser would generally prompt the end-user to choose where to save the file. I recommend referring to the documentation for your platform for information on handling and saving data locally.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?