Javascript to check filesize before upload in Internet Explorer

后端 未结 4 1210
别那么骄傲
别那么骄傲 2020-12-17 16:54

Is it possible to use Javascript to check for a file\'s size (at the client side) before it is actually uploaded to the server?

The application is built on EXTJS and

4条回答
  •  一个人的身影
    2020-12-17 17:51

    The reason you can't is because it would be bad if browsers, and javascript, could access the clients filesystem.

    This is actively denied and can be seen as an attack.

    Using jQuery, Restricting File Size Before Uploading

提交回复
热议问题