2017-08-01 18 views
-1

HTML接受的zip文件不能正常工作

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

我的代碼

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

<input type="file" accept="application/zip,application/x-zip,application/x-zip-compressed,application/octet-stream"> 

它不工作。我點擊,但瀏覽器不顯示對話框來選擇文件。任何人都幫助我?

+0

它根本不會做*任何* ... ?! – deceze

+0

不,當我點擊「選擇文件」時,它不起作用。真的,我所有的團隊都在測試它。 –

+1

似乎爲我工作! - 見上面 –

回答

0

我設置禁用鉻的這個選項,它的工作原理。

enter image description here