Download Files

Summary

Downloads a file from your site. Whenever more than one file is being downloaded, the files are first zipped into a single file before the download starts, and the resulting zip file is named to match the downloadArchiveName parameter.

When multiple resources are requested, if any of them cannot be downloaded, the response will contain the first error and no files will be downloaded.

Endpoint

GET https://mysite.files.com/api/v2/resources/download

Replace mysite.files.com with your site address.

Request Parameters

NameData TypeDescription
resourcesarray(string)Required. Array of files or folders to be downloaded.
Each item should be specified as either the complete path (e.g. my/folder/file.txt) or as a resource ID (e.g. id:31415926535)
downloadArchiveNamestringThe name to use for the result archive. It is included in the response's Content-Disposition header.

Get Instant Access to Files.com

The button below will take you to our Free Trial signup page. Click on the white "Start My Free Trial" button, then fill out the short form on the next page. Your account will be activated instantly. You can dive in and start yourself or let us help. The choice is yours.

Start My Free Trial

©2024 Files.com. All right reserved

FILES.COM

  • Start My Free Trial
  • Pricing
  • Docs
  • API and SDKs
  • Contact

CONTACT & SUPPORT

support@files.com

(800) 286-8372

Monday–Friday

9am–8pm Eastern