Hi all,
Could anyone tell me if it's possible to make an upload script that uploads flash files?
Thanks, Mike
PHP can handle file uploads for any file type. read the manual
Cheers mate, didn't see that 🙂
Hi all again,
I know image/gif is the "code" for a .gif, but now I need something like that for a .swf
I've searched all over but can't find anything.
Please could someone help?
the MIME type for flash files is: application/x-shockwave-flash
Aha, thanks man 🙂
If you want to check the file itself really is a shockwave file, and that the client isn't lying when it says "application/x-shockwave-flash" (or maybe the client doesn't know that type and just uploads it as something else), observe that all such files start with the three-character sequence FWS.