Given this minimal, complete, and verifiable example:
<html>
<head>
<script>
var handleFiles = function(event) {
console.log('# of files: ' + event.target.files.length);
};
</script>
</head>
<body>
<input type="file" onchange="handleFiles(event)" multiple/>
</body>
</html>
Run codeI can’t select my test case from 1682 files in Chrome (although it works in Firefox). My test case is 316 megabytes, so I moved it to a folder with a similar number of files, but simple text files containing one character. The problem continued. Is there a problem with implementing Chrome to control this control? If so, is there a polyfill? How to select 1682 files in Chrome?
source
share