Uploading many files in one go

If you set data-multiple attribute of the <input role="uploadcare-uploader">, the user will be able to choose and upload multiple files at once. These files are stored as a file group, you’ll get a group_id in the value, like this:

088de3b6-c5f2-4f56-9e9c-87b0b960286e~3

This id consists of a UUID and a number after ~: this number is the size of this group. If you’re not using autostore, you can store this group as a whole with API request.

group_id of a stored group can be used to get files from CDN, like this:

http://ucarecdn.com/088de3b6-c5f2-4f56-9e9c-87b0b960286e~3/nth/0/
http://ucarecdn.com/088de3b6-c5f2-4f56-9e9c-87b0b960286e~3/nth/1/
http://ucarecdn.com/088de3b6-c5f2-4f56-9e9c-87b0b960286e~3/nth/2/

All the CDN operations are supported with this scheme, too:

http://ucarecdn.com/088de3b6-c5f2-4f56-9e9c-87b0b960286e~3/nth/0/-/scale_crop/300x300/center/

Read more at the CDN documentation page.

Questions?

We're always happy to help with code or other questions you might have! Search our site for more information or send us an email!