I have a question about input type file in explorer.

Asked 2 years ago, Updated 2 years ago, 62 views

<input type="file " multiple="multiple" name ="img[]" id ="img" />

You are about to make multiple file selections. It works in Chrome, Firefox, etc., but it doesn't work in Explorer 9.

The input type file used by Naver Mail seems to work well in Explorer 9, but I don't know how to apply it.

If you have an API, please tell me which one to use.

javascript html jquery

2022-09-21 20:16

2 Answers

The multiple property of the input file type is a new feature in HTML5, and it does not appear to be supported in browsers below IE9.

For Naver Mail and other services, it seems that it is processed (whether using a library or writing its own code) through JavaScript to support compatibility below IE9.

If you look at the link below, there are Cross Browser Polyfields libraries, so please refer to them.

https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills#file-api


2022-09-21 20:16

When I checked the library used by Naver mail, it was jindo.

http://jindo.dev.naver.com/docs/jindo-component/latest/doc/external/classes/jindo.UploadQueue.html#demo

When I checked the IE 11 emulation on the demo page above, it is multi-select operation up to IE 7 version.


2022-09-21 20:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.