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).
brion added a comment.Jun 6 2011, 5:54 PM

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.

Jdforrester-WMF moved this task from Untriaged to Backlog on the Multimedia board.Sep 4 2015, 6:40 PM
Restricted Application added subscribers: Steinsplitter, Matanya, Aklapper. · View Herald TranscriptSep 4 2015, 6:40 PM
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.
Restricted Application added a project: Commons. · View Herald TranscriptSep 6 2016, 6:08 PM
Aklapper updated the task description. (Show Details)May 30 2019, 10:37 AM
Aklapper updated the task description. (Show Details)May 30 2019, 10:45 AM
Aklapper lowered the priority of this task from Medium to Low.Mar 21 2020, 8:00 PM