Hi Team,
It may be better to have a function on File field wherein you could limit the file upload of a user through configuring the file field with allowed file extension and use the "accept" attribute of the input type file.
It may also be good to have it implemented with Attachment Multiple field type so that we could limit users to upload multiple images or multiple video files only. Its may also have a good idea to have presets of image file extensions, etc. or defaults but admin users should be able still to explicitly configure the allowable extensions like the "accept" attribute of the input type file.
Thanks!
Regards,
Brian
It may be better to have a function on File field wherein you could limit the file upload of a user through configuring the file field with allowed file extension and use the "accept" attribute of the input type file.
HTML Code:
<input type="file" multiple accept='image/*|audio/*|video/*' >
Thanks!
Regards,
Brian
Comment