Z
Z
z_u_l2020-04-27 19:43:04
JavaScript
z_u_l, 2020-04-27 19:43:04

How to get the total number of type="file" multiple files uploaded?

Hello. There is a problem that if you select files individually, then only the last selected one will be sent, if you select several files and send them, then everything is fine - several files will be sent.

There is a suspicion that this is due to input.files.length: if you select one file at a time, then one file is always selected. How to get the total number of type="file" multiple files uploaded?

Uploading files one at a time:
5ea70b7e2346a299479280.jpeg

Uploading multiple files
5ea70b8fe7319530912486.jpeg

at once: Example link

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question