Which code can I use to calculate size file JavaScript?

Asked By 40 points N/A Posted on -
qa-featured

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.

SHARE
Answered By 40 points N/A #138768

Which code can I use to calculate size file JavaScript?

qa-featured

Hello,

There are quite a few scripts are available on the internet, It will definitely help you in restricting file size, Or provide an alert on the oversize issues, Now for that , I have arranged a couple of  links, Which will guide you effectively,

http://ppk.home.xs4all.nl/js/filesize.html

https://forums.asp.net/t/1405362.aspx

Get in touch with us,If you don't find it useful

Thanks

Related Questions