Titan Network

More Titan Projects => ParagonWiki => Topic started by: Sin Stalker on June 10, 2010, 11:48:47 AM

Title: Wiki Help Again
Post 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
Title: Re: Wiki Help Again
Post by: TonyV on June 10, 2010, 03:30:32 PM
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).
Title: Re: Wiki Help Again
Post by: Sin Stalker on June 10, 2010, 09:27:08 PM
right. I did that already. I get a warning saying the file is corrupt and won't let us upload .costume and cohdemo files.

Title: Re: Wiki Help Again
Post by: Steiner on June 10, 2010, 11:25:45 PM
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.
Title: Re: Wiki Help Again
Post by: Sekoia on June 11, 2010, 02:20:00 AM
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
Code: [Select]
$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.
Title: Re: Wiki Help Again
Post by: Sin Stalker on June 13, 2010, 11:07:00 AM
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?
Title: Re: Wiki Help Again
Post by: GuyPerfect on June 13, 2010, 03:31:32 PM
If you can get the software to associate *.cohdemo and *.costume files as text/plain, it should work without any issues.