Which code can I use to calculate size file JavaScript?
I have built a web application in JavaScript which enables users to add content including images. I would like to limit the file size that the users are able to upload. I need a code that I can use to calculate size file JavaScript. The code should be able to calculate the file size, if it is above the limit then it gives back a message alerting the user that the file size is too big. Thanks.