File size and mime-type before upload

Posted by Marcos Placona on Stack Overflow See other posts from Stack Overflow or by Marcos Placona
Published on 2010-04-23T11:05:59Z Indexed on 2010/04/23 11:33 UTC
Read the original article Hit count: 342

Filed under:
|
|
|
|

Hi, I've scavenged on every single topic on this 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

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html