We’ve recently added a new feature allowing you to decide, how many files you want your users to upload.
In the “Permissions” section of details of the button view, there are two new fields, “Minimum files” and “Maximum files”
When you set it up, there will be an info about how many files are uploaded, and how many is possible. User will not be able to upload more files than the “Maximum files” value, and will be required to upload as many files as set on the “Minimum files”.
If you use a “Form attachment” mode and you put the button inside the form, on the submit, there will be an information if file count does not match required one, preventing the form from submitting.
New additional html attributes
There are also additional html attributes on the “data-plane-upload” element, so it is simpler for using it in the web applications, which are:
- data-plane-upload-files-count=”..” – the count of the uploaded files
- data-plane-upload-is-uploading=”..” – 1 if uploading, 0 if not