如何在上传之前在客户端找到文件大小 [英] HOW TO FIND FILE SIZE ON CLIENT SIDE BEFORE UPLOADING

查看:65
本文介绍了如何在上传之前在客户端找到文件大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



如何才能在上传之前找到文件的大小?许多浏览器都不支持将javscript与activex一起使用。但仍然可以在客户端(当你在客户端本身附加文件时,gmail会在所有浏览器中执行此操作)。 PLZ帮助...



感谢和问候,AR

hi all,

how can i find a file''s size before uploading it? using javscript with activex is not supported by many browsers. but still it is possible on client side (gmail does it in all browsers when you attach a file on client side itself). plz help...

thanks & regards, AR

推荐答案

但这需要将文件发送到服务器。 gmail使用了一个客户端方法,但我无法找到...
but that requires sending the file to the server. there is a client side method for this that gmail uses, but i cant find how...


GMail的附件上传使用Flash查找大小并显示进度。 />


这是另一个做同样事情的人: SWFUpload [ ^ ]
GMail''s attachment upload uses Flash to find the size and display the progress.

Here is another one that does the same thing: SWFUpload[^]


swfupload正在按照我想要的方式完成工作......非常感谢
swfupload is doing the job just the way i wanted it...thanks a lot


这篇关于如何在上传之前在客户端找到文件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆