Jump to content

Custom Mime Types [uploading files]


pengu

Recommended Posts

Hey Guys,

 

How are custom Mime Types achieved?  Had a quick search through the forums, and most of the posts relate to mail() questions.

 

Did a google search and found a completely useless article that told me to edit a non-existent text box.

Quick example, the file type I want is .WAgame, I got this far before I realised what I was doing didn't make sense.  So I looked up mime types, knowing that this file would not exist.

if ($_FILES["file"]["type"] != "file/WAgame")
      {
       naughty!
      }

 

Help! :)

Edit:

Link to comment
https://forums.phpfreaks.com/topic/205715-custom-mime-types-uploading-files/
Share on other sites

  • 2 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.