Page MenuHomePhabricator

When warning about invalid file extensions, output the bit of the extension that was actually checked
Closed, ResolvedPublic

Description

Author: dev

Description:
When I try to upload a file whatever.tar.gz, I get
a warning that .tar.gz files are not allowed.
So, I add "tar.gz" to my $wgFileExtensions - with
no success, because I am supposed to add "gz".

So, please do not warn ".tar.gz is not a
recommended image file format.", but warn ".gz is
not a recommended image file format.". This leads
the user to do the right additions to
$wgFileExtensions.

My patch does this.


Version: unspecified
Severity: normal
OS: Linux
Platform: Other

Details

Reference
bz6603

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:21 PM
bzimport set Reference to bz6603.
bzimport added a subscriber: Unknown Object (MLST).

dev wrote:

warn ".gz" is not a recommended file format.

Attached: