How can I get a file's upload size using simple Javascript?

前端 未结 8 837
醉梦人生
醉梦人生 2020-12-10 04:41

I have upload file functionality on one of the page. I check for the extension of the file using JavaScript. Now i want to restrict the user from uploading file greater than

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-10 05:16

    It might be possible using a lot of browser-specific code. Take a look at the source of TiddlyWiki, which manages to save itself on the user's hard drive by hooking into Windows Scripting Host (IE), XPCOM (Mozilla), etc.

提交回复
热议问题