1

I have a file input form, and I want to accept zip file only

<input type="file" accept=".zip">

But I can still choose some files in other formats:

like this:

I'm on macOs 10.13.2, Chrome 69.0.3497.100.

I want to know the reason, and how can I select zip file only?

Your help will be much appreciated.

Julien
  • 1,230
  • 16
  • 20
  • 1
    Possible duplicate of [HTML file input accept only .zip files (not .exe)](https://stackoverflow.com/questions/24832275/html-file-input-accept-only-zip-files-not-exe) – treyBake Oct 25 '18 at 14:50

0 Answers0