Hello,
I want to make my file select dialog box should allow to select only certain type of extensions like .jpg,.gif,.png etc. So when I click on upload button it should give the file select dialog with file types .jpg,.gif & .png no other types can be allowed. Is it possible anyhow via javascript or PHP or something else? Please help me. Thanks in advance.
Making file select dialog for selecting files of particular extensions
You'll have to validate the mime type of the files in-code. The file select dialogue will allow all file types to be shown/selected.
so according to you it is not possible to have the control of file dialog in our hand? I mean we can not make all files to specific file types in file dialog?
As far as I know, the standard html form upload allows all filetypes to be shown/selected.
but can we tweek it using coding(Either javascript/PHP/anything else) to select only particular kind of extensions? If yes then how? Please help me. Thanks.