Forum Discussion

Dvir's avatar
Dvir
New member | Level 2
3 years ago

download zip folder

i have a web site in js using php server.

I am trying to download zip folder threw php and get back zip folder to js

but the comuter gets stock.

how can i just get back a kink to the downloadzip folder?

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

    If you want to download a zip file (e.g., a folder that has already been uploaded to Dropbox as a .zip file), you can use /2/files/download to download the content directly, or /2/files/get_temporary_link to get a temporary directly link to the .zip file.

     

    If you want to download an entire (not already zipped) folder from Dropbox as a zip file, you can use /2/files/download_zip. Dropbox doesn't offer a way to get a link to a zipped version of a (not already zipped) folder.

     

    By the way, those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for the HTTPS endpoints.

     

    If something isn't working as expected, I'll be happy to help with any issues you're having with the Dropbox API, but I'd need some more information. In that case, please reply with:

     

    • the name and version number of the platform and SDK/library you are using, if any
    • the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
    • the full text of any error or unexpected output