Last modified: 2013-02-05 11:47:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T39450, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37450 - Upload: "Destination filename" overwritten by "Source filename" selection
Upload: "Destination filename" overwritten by "Source filename" selection
Status: NEW
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.21.x
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-10 12:27 UTC by Subfader
Modified: 2013-02-05 11:47 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Subfader 2012-06-10 12:27:39 UTC
[[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.
Comment 1 Subfader 2012-06-10 12:43:09 UTC
Solution: upload.js > 

function fillDestFilename(id) {
	if (!wgUploadAutoFill) {
		return;
	}

Correct: if (wgUploadAutoFill)
Comment 2 Andre Klapper 2013-02-05 11:47:13 UTC
Confirming.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links