Limiting the number of images uploaded at an early stage is a necessary measure to prevent exceeding the allowed storage limits in your application.
As I have posted previously, this approach is easier when controlling the Submit button on your form. In the code below, you only need to modify the :nth-child(4) part of the code to set the desired upload limit.
Since the “Multiple Image Picker” component does not have an option to specify a class name (limitToUpload), you will need to add a cont…
It can either be done using CSS like above.
You could do that with a custom form.
Do a rollup->count on the column, and only allow submission if the count is within the limit.
Or with a custom form, if this process is inside a “form”. However, this only prevents submission, not at the actual point when you submit your uploads to the server.
1 Like