Javascript to check filesize before upload in Internet Explorer

后端 未结 4 1202
别那么骄傲
别那么骄傲 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:36

    There's currently no way to portably check the size of an uploaded file from the web browser. The HTML5 File API makes this possible, but that's not available in MSIE7 -- it's currently on track for MSIE10.

    There is intentionally no way to determine the full path of an uploaded file, as that may include sensitive information, like the name of the end user.

提交回复
热议问题