How to set up a file upload popup window? HTML

I already know how to create downloadable files for downloading files, and limiting that I will upload only an image, I just wonder if it is possible to remove the drop-down list with the image "Image" and "All files". is there any code i have to do to remove โ€œall filesโ€ from the drop down list?

+4
source share
1 answer

maybe this is your answer

Just don't get your question. But perhaps this is your answer.

<input type="file" name="pic" id="pic" accept="image/gif, image/jpeg" /> 

Some browsers do not support this command. Third are supported, but only valid formats are not displayed in the drop-down list.

Firefox drop down list show formats what is accpted

And never trust your user, just confirm sending the user on the server side, for example PHP

+1
source

All Articles