Skip to content
Advertisement

How do I upload some special file extensions (djvu, jp2, …) on web

I have some problems when I try to upload an image. some extensions do not appear on the Upload Dialog, such as (.djvu, .jp2). How do I accept that without selecting All (.)

Advertisement

Answer

Use the accept Parameter like that:

<input type="file" id="uploader" name="myupload" accept=".djvu, .jp2">
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement