tora - Takamichi Akiyama wrote:
Thank you, Clayton.
A .txt file is now allowed to be uploaded. I have done with
uploading .txt files to the wiki page.


There is something you might be interested.
An attempt of uploading a file whose name ends with .pl.txt seems
to be still rejected although .txt is now allowed.

The message, cited below, says
 ".txt" is not a permitted file type.
 Permitted file types are ..., txt.

Rejected filename:
 get_statistics_of_uploaded_files_in_the_mirror-2009-08-22.pl.txt

Message:
 Upload file
 Upload warning
".txt" is not a permitted file type. Permitted file types are png, gif, jpg, jpeg, ppt, xls, doc, mpg, mpeg, rar, zip, tgz, tar, gz, bz2, odt, ods, odp, odg, oxt, xpi, svg, pdf, txt.

Succeeded filename:
 get_statistics_of_uploaded_files_in_the_mirror-2009-08-22_pl.txt
 mirror_a_list_of_extended_3.1.1rc2.txt

I don't mean that .pl.txt should be also allowed. What I thought
about that is that an extension .pl.txt is rejected while .1rc2.txt
is allowed. Hmm...

Thanks anyway.
Tora

Hello Tora, Clayton

Just taking a guess here. MediaWiki also uses a blacklist of file types - those that shall not be accepted for upload. Spec. at http://www.mediawiki.org/wiki/Manual:$wgFileBlacklist

My guess is that the MediaWiki code is looking for the pattern .pl and finding it rejects the name.
If correct then I would expect that a file name of
get_statistics_of_uploaded_files_in_the_mirror-2009-08-22.exe.txt
would also fail...didn't try it though.

Now that could be a feature, a bug or maybe I'm just totally wrong?

Drew

ps I'd call it a bug and treat it like a feature, personally, if true BTW :>)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to