Titan Network
More Titan Projects => ParagonWiki => Topic started by: Sin Stalker on June 10, 2010, 11:48:47 AM
-
I posted here awhile ago asking for help. I have another issue now I am hoping you guys can help with.
I am trying to allow uploads for .costume files and critter files and such so that comic creators can upload and share and have a database of their characters. This allows others to pull from and use.
The problem is that it keeps coming back with the same warning/message.
The file is corrupt or has an incorrect extension. Please check the file and upload again.
The wiki is at www.cohcomicindex.com
Please let me know what I am doing wrong or missing. Thank you.
-Sin
-
You'll need to add extensions you want to be able to upload in your LocalSettings.php file.
More info here (http://www.mediawiki.org/wiki/Manual:$wgFileExtensions).
-
right. I did that already. I get a warning saying the file is corrupt and won't let us upload .costume and cohdemo files.
-
You have to add them to wiki's allowed MIME types. or depending on your server setup, possibly in the apache/php settings as well.
-
You'll want to read Mime type detection (http://www.mediawiki.org/wiki/Manual:Mime_type_detection). When I did this on another wiki, I ended up giving up and just setting
$wgVerifyMimeType = false;
to make the error go away... but that's on a smaller wiki where security isn't as much of a concern, so I wouldn't necessarily recommend it.
-
So what it is, is I put that a .costume and .cohdemo things are text files and so then the system won't say its not right?
-
If you can get the software to associate *.cohdemo and *.costume files as text/plain, it should work without any issues.