0
I have a input file
that receives several files, however I only managed to get the size of the first one. I would like to know how to take the size of all and add in a variable;
var sizeTotal = $("#inputfileSendTorrent")[0].files[0].size;
<input type="file" multiple name="inputfileSendTorrent[]" id="inputfileSendTorrent">
You have a file type input that can receive multiple files and want to know the size of each file?
– Laerte
@Laerte No, of all summed up.
– Lucas Caresia
Yes, but the input is file type right? Is that you wrote input size.
– Laerte
@Laerte Opa, I made a mistake, I already asked the question.
– Lucas Caresia
And that amount must be saved at the time the guy selects or at the time he sends?
– Laerte
In that same place there, in the case
beforeSend:
.– Lucas Caresia