L
L
lacrim2017-04-06 02:11:51
API
lacrim, 2017-04-06 02:11:51

HTML5 File API is it possible to sort and remove some images before submitting a form?

Tell me if there is such an opportunity to manipulate objects selected through JS in the input multiple in the HTML5 File API.? For example, if I want to change the sequence of images before sending them to the server, or delete a couple of files from the previously selected array?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Peter, 2017-04-06
@lacrim

Yes. Can.
On the change input event, you take the entire list of inserted files. And you can display on your page (if these are pictures) or show icons.
Then you can send everything selected/filtered to the server yourself via XMLHttpRequest.

S
SagePtr, 2017-04-06
@SagePtr

You can submit a form via Ajax, and anything can be sent there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question