Hello, how can I activate to upload and "txt" file to my wiki? Thank you.
Topic on Project:Support desk
See Manual:Configuring_file_uploads#Configuring_file_types.
Please note that allowing txt files (and basically any kind of text files) is a potential security problem for the users of your wiki.
Hello, I add on file LocalSettings.php
# Add new types to the existing list from DefaultSettings.php
$wgFileExtensions[] = 'txt';
But when upload TXT file on site I receive error
The file extension "..." does not correspond to its MIME-type (chemical / x-mdl-rgfile).
and upload is stooped, can you consult? Thank you.
If you want to upload files with MIME type chemical / x-mdl-rgfile, then you will have to allow this MIME type. Does Manual:MIME type detection help?
I upload on my wiki file.txt and receive that message
I add to "LocalSettings.php" "$wgVerifyMimeType = false;", but anyway I ca not upload txt file.
The problem is in TXT file encoding, I create a demo TXT file http://r.ournet.biz/1RAQ9bk and I can upload that file to my wiki, but another TXT file http://r.ournet.biz/22KgdIV I can not upload, why?