views:

164

answers:

1

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

+2  A: 

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.

Alex K.
So does that make it the only possible way?
Marcos Placona