javascript - When using form elements in html5, when uploading files using input, if it is limited to image files, it will be very slow to open the file selection window.
高洛峰
高洛峰 2017-06-29 10:09:53
0
1
961

The problem is this:
Use: <input type="file" id="file" multiple size="5" accept="image/*">
When selecting image files, if the accept attribute limit is not added, the file selection window will be opened very quickly, but after the accept limit is added, the file selection window will become very slow.

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
刘奇

Try the solution to specify MIME type

<input type="file" accept="image/gif,image/jpeg,image/jpg,image/png,image/svg">
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template