A group is an ordered collection of file instances.
Groups are immutable: once created, they can not be changed. However, you do not
have to create a new group every time you delete a file: groups can hold
- Create a new group instance
- Get group info
- Get files in group as array
- Get file groups from CDN
- Object overview,
You can create a new group from an array of files and/or other groups.
After a group instance is created, it can be pushed to Uploadcare by calling
You can subscribe to group upload events to let your app know when all files are uploaded, and a new group is created.
There is also a way to check out you group upload progress. Make use of the
Here is how you get files stored in a group as array:
Get file info on a first-ready-first-served basis:
Get file info in line with their positions in a group:
This is how the structure of
fileGroupInfo looks like,
File group identifier.
Localized group size string, e.g. “5 files”.
Total file size in bytes.
File group CDN URL.