Page MenuHomePhabricator

Upload form should change file extensions to the canonical form automatically (lowercase, jpeg→jpg etc.)
Open, LowPublic

Details

Reference
bz29284

Event Timeline

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

A few things to consider...

It looks like the name-changing in this patch is stuffed into the AJAX license preview code... it probably belongs over with fillDestFilename or other stuff that's related to the filename getting set.

When dealing with reuploading new versions over existing files, we need to make sure that the name doesn't get changed.

Patch needs to come with test cases if possible; see tests/qunit & http://www.mediawiki.org/wiki/Manual:JavaScript_unit_testing for more info on our new JavaScript testing framework.

Since it looks like this name transformation isn't currently applied on the PHP side either, if done here it should also be done on the PHP side. This again would need to deal with the case of existing files that violate the new recommendation.

johnnymrninja wrote:

Noting that bug 40479 would resolve this issue.

matmarex renamed this task from Upload form should make file extensions lowercase automatically to Upload form should change file extensions to the canonical form automatically (lowercase, jpeg→jpg etc.).Sep 6 2016, 6:08 PM
matmarex set Security to None.
matmarex removed a subscriber: wikibugs-l-list.
Aklapper lowered the priority of this task from Medium to Low.Mar 21 2020, 8:00 PM