Data Types

Archive Processing API

Archive processing REST API for compressing and extracting TAR, ZIP, and GZIP files.

Usage

Replace raw with archive in your file URLs:

https://upcdn.io
Account
/W142hJk/
API
archive
File Path
/example.zip
Parameters
?m=extract

Finally, add query string parameters to perform file archival or extraction:

API Reference

Use combinations of the following query string parameters to compress and extract files on demand:

Mode  m

m=archive

Archives the file.

The resulting file archive will be in the format specified by the f parameter.

m=extract

Extracts the file archive.

The file must be a valid archive of type .zip, .tar, .gz, .tgz, .tar.gz, .bz2 or .tar.bz2.

The response will be a list of file sizes and file paths.

Use the artifact parameter to download a specific file from the archive.

Output Format  f

f=tar

Archives the file into a .tar archive.

f=tar.gz

Archives the file into a .tar.gz archive.

f=zip

Archives the file into a .zip archive.

Compression Level  c

c=<int>

Sets the compression level for the resulting file archive.

0 = lowest compression and largest file size.

9 = highest compression and smallest file size.

Note: if c is set then f must be zip or tar.gz (tar files are uncompressed).

Was this section helpful? Yes No

You are using an outdated browser.

This website requires a modern web browser -- the latest versions of these browsers are supported: