Skip to content

Download a fileset

When a fileset is successfully uploaded using the upload URL and the creation process is finished, a download URL is supplied in the JSON response from the GET file API.

This URL contains an asterisk that should be replaced with the filename or the path to the file if it’s located in a sub-folder. To download the original archive file, simply remove the asterisk from the URL.

Prerequisites

  • A file should be created with fileset option set as true. To know more about fileset refer here.

To access an individual file use the following API call:

Request

  1. Get the download URL for an existing fileset (by file ID):
GET {baseUrl}/spaces/{spaceId}/files/{fileId}?urlDuration=5m&complete=true
  1. Use the download URL to access the file:

The fileset download URL will look like this and please notice the asterisk (*) in the URL:

https://{domainName}/{objectPathInCloudStorage}*?{expiryPolicy}

  • To get a file in the root of the fileset, replace * with /filename.
  • To get a file in a subfile of the fileset, replace * with /subfolder/filename.
  • To get the original archive file, remove the *.