Main Menu

Wiki Help Again

Started by Sin Stalker, June 10, 2010, 11:48:47 AM

Sin Stalker

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

TonyV

You'll need to add extensions you want to be able to upload in your LocalSettings.php file.

More info here.

Sin Stalker

right. I did that already. I get a warning saying the file is corrupt and won't let us upload .costume and cohdemo files.


Steiner

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.
~Steinerd

Sekoia

You'll want to read 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.

Sin Stalker

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?

GuyPerfect

If you can get the software to associate *.cohdemo and *.costume files as text/plain, it should work without any issues.