开发者

File size and mime-type before upload

开发者 https://www.devze.com 2022-12-27 18:04 出处:网络
I\'ve scavenged on every single topic on th开发者_运维技巧is forum to try and find an answer before I posted this. Most people say you should simply use SWFUpload, some others mention Activex, and it

I've scavenged on every single topic on th开发者_运维技巧is forum to try and find an answer before I posted this. Most people say you should simply use SWFUpload, some others mention Activex, and it keeps going.

I know this is do-able, as Google does it with gMail when you try to upload a file that's bigger than 25mb, or executable.

My question is, how can I determine the file size and mime-type before the file actually hits my server.

I primarily thought it was an impossible task, but Google proves me wrong.

Could anyone give me a definitive answer on how to accomplish such task?

Thanks


Gmail do use a flash uploader, inspect the attach link in Firebug and you will see it uses uploader/uploaderapi2.swf. Disable the Flash add-in and it will behave differently.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号