Page MenuHomePhabricator

Upload: "Destination filename" overwritten by "Source filename" selection
Open, LowPublic


[[Special:Upload]]: Type a destination file name > Select s source (file selection or URL) > The typed name is overwritten.

upload.js > toggleFilenameFiller() and fillDestFilename(id) try to avoid this behaviour but are not working properly:

var destName = document.getElementById('wpDestFile').value;
if (destName=='' || destName==' ') {

		wgUploadAutoFill = true;

} else {

		wgUploadAutoFill = false;


The destination file name is always replaced.

Version: 1.21.x
Severity: minor



Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:24 AM
bzimport set Reference to bz37450.
bzimport added a subscriber: Unknown Object (MLST).

Solution: upload.js >

function fillDestFilename(id) {
if (!wgUploadAutoFill) {



Correct: if (wgUploadAutoFill)

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 22 2016, 6:11 PM