0
If you want to get the video size and are using the same function as your another question, you can get by attribute size
which is returned in bytes. Then to convert in MB:
var tamanho = (this.files[0].size/1024)/1024; // Bytes > KB > MB
Jsfiddle: https://jsfiddle.net/ckLnyn5t/2/
Thanks, now I get it.
– Matheus Miranda
Because 1024 bytes is 1 KB, and 1024 KB is 1 MB, so on. Behold
– BrTkCa
@Matheusmiranda, I tested with a smaller video and the return in size was compatible. Did you have looked for the wrong file (other than uploaded) by right clicking?
– BrTkCa
Now it worked, it was a mistake to write, thanks @Lucascosta
– Matheus Miranda