CDN Group API
Groups are file collections. You can use those to organize content in your Uploadcare project. For instance, each time you use multi-upload with our widget, a new group holding UUIDs of uploaded files is created. You can access file collections via
:group_uuid. Here is an example,
:group_uuid is similar to file UUIDs with the only difference of having
~N at the end, where N stands for a number of files in a group.
Navigating through a URL holding group UUID will result in getting a list of individual UUIDs of files in that group. Groups serve the purpose of organizing files in your projects. For instance, every multi-file upload via our widget makes a new group. You can still access every single file in your group.
When working with groups, you can request a single file by using its zero-based index,
Note, there is no
/-/ separator after a group UUID:
/nth/ is not a Media Processing operation. Each group UUID includes a number of files in this group so you could iterate through them. Files in a group still support all the Media Processing operations,
You can also make groups from processed files. Such files are added together with the respective sequences of operations. So, if you request a file from a group, it is invoked with all the stored operations. Adding more controls to such files will combine them with the existing ones.
Getting a group as an archive is technically done via the
archive group processing operation.
Current operation limits are:
- A total size of uncompressed files in a group should not exceed 100 MB.
- Media Processing operations within a group are discarded: only original file versions are added to the output archive
The workflow of getting an archived file group is straight-forward:
:group_uuid— UUID of a file group you want to get as an archive.
:format— the format of that output archive, we support
:filename— (optional) output filename: you can either specify a name for your archive or omit the parameter; more about filenames here.
Making a gallery is also based on a group processing operation,
gallery. Here’s how it works,
You can customize the layout and behavior of images in a gallery by adding Fotorama options to their URLs. The workflow is pretty much the same as with our Media Processing except that we do not support image size, dimensions, and ratio manipulations here.
One of great use cases with
gallery is embedding a collection of images right into your page via