Jump to content


Photo

Identitify the right MIME TYPE


  • Please log in to reply
1 reply to this topic

#1 saurabhmdh

saurabhmdh
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 25 September 2006 - 07:07 AM


How we identitify the right Mime type . . Suppose User change the file extenstion and upload the file then how we identitify the right extenstion

  User.exe (before uploading)  -- -- User.jpg (Changing the Name ) ----> Upload in server  ???? How we Identitify the Right file type ???

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 25 September 2006 - 11:35 AM

Use $_FILE['upload_Field_Name_HERE'][type'] i believe in order to find out out what file type the uploaded file is.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users