When $wgCheckFileExtensions is set to false, UW still limits the allowed extensions to $wgFileExtensions:
This wiki does not accept filenames that end in the extension ".***".
The checks are preformed near line 444 of mw.UploadWizardUpload.js
When $wgCheckFileExtensions is set to false, UW still limits the allowed extensions to $wgFileExtensions:
This wiki does not accept filenames that end in the extension ".***".
The checks are preformed near line 444 of mw.UploadWizardUpload.js
Project | Branch | Lines +/- | Subject | |
---|---|---|---|---|
mediawiki/extensions/UploadWizard | master | +6 -3 | Added support to ignore file extension |
@Steinsplitter: Did you set the priority because you plan to work on this or now somebody planning to work on this?
I'm marking this as "easy" because to me it sounds like about two lines of code. New coders, feel free to work on this bug at your leisure.
Steinsplitter, I don't think this affects any in-production wikis, and I'm not sure who in their right mind doesn't set that variable.
This affects Commons Archive, where the file extension checks are hacked to be ignored.
I'll take this task for now and see if I can fix this.
Doesn't matter. We are developing MediaWiki and not WikimediaSoftare. @zhuyifei1999 thanks for picking this up.
Change 222085 had a related patch set uploaded (by Zhuyifei1999):
Added support to ignore file extension