Last modified: 2014-05-22 19:15:50 UTC
Created attachment 8627 [details] Patch for skins/common/upload.js IMHO upload form should make file extensions lowercase automatically during file name editbox autofill. Patch is attached.
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.
Noting that bug 40479 would resolve this issue.