使用Javascript检查文件大小的问题 [英] Problem with check file size with Javascript
本文介绍了使用Javascript检查文件大小的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试使用javascript找到文件大小,然后使用以下Javascript上传到服务器(由于兼容性问题,我不想使用ActiveX)。
I?m trying to find the file size using javascript, before it get uploaded into the server using the following Javascript (I don?t want to use ActiveX because of compatibility problem).
展开 | 选择 | Wrap | 行号
推荐答案
欢迎来到TSDN!
你不能检查使用JavaScript的文件大小。对于非IE浏览器中的本地文件,您甚至无法管理图像预览。
Welcome to TSDN!
You can''t check file size with JavaScript. For local files in non-IE browsers, you won''t even manage an image preview.
谢谢,但是如果我尝试加载小图像(小于100KB)我的脚本运行正常的原因)?
Thanks, but why my script run correctly if I try to load little images (lesser than 100KB)?
您正在测试哪些浏览器?
Which browsers are you testing on?
这篇关于使用Javascript检查文件大小的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文