[Mediawiki-l] File upload help
schalch at gmail.com
Fri May 11 11:21:07 UTC 2007
On 11/05/07, Alexis Moinet <alexis.moinet at fpms.ac.be> wrote:
> Mike a écrit :
> > Thanks alot! That got the upload file link working for me, now I'm
> having another problem. I want to be able to upload files with the
> extension of .cmd
> > As Rob suggested, I read deeper and found that I have to add this to
> > $wgFileExtensions = array( 'gif', 'cmd', 'jpg', 'jpeg', 'doc', 'txt'
> > which I did, but I still get a message saying ".Cmd" is not a
> recommended image file format.
> > Any ideas on this?
> cmd is forbidden by the $wgFileBlacklist array (in DefaultSettings.php)
> use LocalSettings.php to enable it (though if it's forbidden, there is a
> reason for it ... )
Aint $wgFileBlacklist has highest priority, so you have no way to upload
files with extension in the blacklist, even if you add to $wgFileExtensions
I guess, he has to remove the 'cmd' from DefaultSettings.php...
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
More information about the MediaWiki-l