Requested Feature:
The App Connect S3 Multi Upload component should include a property to enforce a maximum number of selectable files.
Summary:
The current dmx-s3-upload-multi component allows a user to select an unlimited number of files from their file browser. While individual files can be removed from the queue in the UI, there is no built-in mechanism to prevent the user from selecting more than a specified limit in the first place.
Furthermore, because the component's url property is executed once for each selected file, there is no single server-side entry point to validate the total file count before the upload process begins. This makes it impossible to enforce a limit on the server side in a user-friendly way.
This feature request is to add a client-side validation property directly to the component to solve this problem.
Benefits of this Feature:
-
Improved User Experience: It provides immediate, client-side feedback to the user, preventing them from selecting too many files and having to manually correct the queue. This is a much better experience than receiving an error after the upload process has already begun.
-
Enables Business Logic: It allows developers to enforce business rules and plan tiers (e.g., "Free users can upload 3 files, Pro users can upload 10").
-
Reduces Server Load: It prevents unnecessary server-side calls to the S3 Signed Upload Url action for files that would ultimately be rejected, saving server resources.
-
Completes the Component's Feature Set: File count validation is a standard and essential feature for any multi-file uploader, and its inclusion would make the S3 Multi Upload component a more complete and robust tool.
This feature would provide a much-needed layer of control and validation for a very common use case, improving both the developer and the end-user experience.