Jump to content


Photo

Upload File Types Testing


  • Please log in to reply
1 reply to this topic

#1 glenelkins

glenelkins
  • Members
  • PipPipPip
  • Advanced Member
  • 760 posts
  • LocationBridlington - East Riding of Yorkshire - United Kingdom

Posted 04 July 2006 - 06:39 PM

Hi

How would i test an uploaded file (Eg if($swfFile['type'] == "image/gif") for a flash ".SWF" format?
http://thewebsolutionprovider.com - A Solution For Everything Web!

#2 micah1701

micah1701
  • Members
  • PipPipPip
  • Advanced Member
  • 613 posts
  • LocationEllington, CT USA

Posted 04 July 2006 - 07:00 PM

the MIME type for .swf is application/x-shockwave-flash

if($swfFile['type'] == "application/x-shockwave-flash")

check out:
http://www.webmaster...ime-types.shtml
for a list of all MIME types


"Confidence in the face of risk."




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users