Page MenuHomePhabricator

Add an option to ignore file extension
Closed, ResolvedPublic


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

Event Timeline

zhuyifei1999 raised the priority of this task from to Needs Triage.
zhuyifei1999 updated the task description. (Show Details)
zhuyifei1999 added a project: UploadWizard.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Steinsplitter set Security to None.

@Steinsplitter: Did you set the priority because you plan to work on this or now somebody planning to work on this?

Aklapper lowered the priority of this task from Medium to Low.Jun 30 2015, 2:30 PM
Steinsplitter raised the priority of this task from Low to Needs Triage.Jun 30 2015, 2:34 PM

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.

That is not a production wiki.

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

Change 222085 merged by jenkins-bot:
Added support to ignore file extension

matmarex added a subscriber: matmarex.