https://bugzilla.wikimedia.org/show_bug.cgi?id=48261
--- Comment #5 from Brad Jorsch <[email protected]> --- (In reply to comment #4) > Brad you are still failing to explain to me in a way I understand why this > is a warning and not an error. Because the "badfilename" message is not an error. It's a (poorly-named, but that's what we are given by UploadBase) warning that the name you supplied is not the name that is going to be used, but MediaWiki will happily allow the upload using the corrected name if you tell it to. Just like "duplicate" is a warning that the file is a duplicate, but MediaWiki will happily allow the upload anyway if you tell it to. > At the moment in general I feel like when I query the API I get success, > failure or "magical mystery box" which could be either and I have to know > every > possible outcome to understand whether the photo ended up on the server or > not. > Why can this not be binary? It's very simple: Look at the "result" field in the response. If it's "Success", the upload succeeded. If not, something went wrong and it's up to your application to provide proper handling of that situation because MediaWiki *cannot* correctly do it for you. -- 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
