Hey. I have a use case of uploading video files using the upload widget.
I limit the uploaded files to videos using resourceType parameter which adds validation.
Browse button in the upload widget is file input.
<input type="file" name="file" class="cloudinary_fileupload">
When it is clicked on mobile (for example on iOS) it provides the following options: Take Photo or Video, Photo Library and Browse. HTML5 input allows accept attribute to control those options. In my case, it would limit options to Take Video, Photo Library, and Browse if I had specified the following accept parameter accept="video/*".
<input type="file" name="file" class="cloudinary_fileupload" accept="video/*" />
Is there a way to control attributes of Browse file input in the upload widget?
Please sign in to leave a comment.