FileUploadInputElement disable All Files option

84 views Asked by At

I want to implement a file picker that would only upload image filetypes and hide the options button.

InputElement uploadInput = FileUploadInputElement();
uploadInput.accept = 'image/*'
uploadInput.click();

However, when selecting a file, the user can select the option > all files.

Image types

All files are enabled

How do I hide the options button? In the mdn docs, when selecting a file, the options button is hidden. I want to do it just like that.

0

There are 0 answers