Skip to content

Function: archiveUrl() ​

ts
function archiveUrl(
   cdnBase, 
   group, 
   format, 
   filename?
): string;

Defined in: group/group-urls.ts:67

Group archive url /:uuid~N/archive/:format/(:filename). Archives contain the original files only (≤ 2 GB uncompressed).

Parameters ​

ParameterType
cdnBasestring
groupGroupId
format"zip" | "tar"
filename?string

Returns ​

string

See ​

https://uploadcare.com/docs/file-groups/#group-archive

Example ​

ts
archiveUrl('https://ucarecdn.com', { uuid, count: 3 }, 'zip', 'all.zip')
// → https://ucarecdn.com/:uuid~3/archive/zip/all.zip