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

--- Comment #3 from Brad Jorsch <[email protected]> ---
It would be helpful if you'd post the exact data that UploadWizard is posting
(although you can redact the content of the file if it's large, and of course
redact any tokens). I just tried uploading via API on Commons with
https://commons.wikimedia.org/wiki/File:Anomie_test_for_bug_65338.png and got
the correct error response when I tried to reupload a different version.

For good measure, I tried both direct upload and upload first to stash. Both
worked correctly.

FYI, my upload data was:

 {
        'maxlag' => '5',
        'file' => [ '/tmp/red.png', 'Anomie test for bug 65338.png' ],
        'filename' => 'Anomie test for bug 65338.png',
        'token' => [REDACTED],
        'comment' => 'This file is a test for [[bugzilla:65338]]. Anomie will
flag it for deletion when done. Sorry for the inconvenience.',
        'watchlist' => 'nochange',
        'format' => 'json',
        'action' => 'upload'
 }

-- 
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