https://bugzilla.wikimedia.org/show_bug.cgi?id=17200

           Summary: Reuploading a file saves to source file name
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: Uploading
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Reuploading a file saves the file under the source name, not under the name of
the already existing file.

It appears that the problem is the disabled wpDestFile field. Apparently at
least Firefox 3.0.5 does not send that disabled field upon submit, and
SpecialUpload.php thus reverts to using the source name instead (lines 403-407
in r46444).

Enabling the wpDestFile field just before submitting cured the problem in my
tests.

Test case: go to [[File:Albert_Einstein_by_Suse_Byk.png]] at the English
Wikipedia. Click the "Upload new version of this file" link. Choose as the
source file a file named HCC.png from your local disk. Enter "Foo" as the
upload comment. Click "Upload". You'll end up uploading [[File:HCC.png]].


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to