(bug 30625) Add, to every API upload response, the warnings raised.
authorMark Holmquist <mtraceur@member.fsf.org>
Fri, 11 May 2012 20:39:57 +0000 (13:39 -0700)
committerAaron <aschulz@wikimedia.org>
Tue, 22 May 2012 21:23:23 +0000 (14:23 -0700)
commite2b3d53db5c766dea3ea1d34e4136259214a03c9
treed6f83a92673552e4a1eb4203e3829555869adc81
parent05e656af5b8f7740ad99889998978e7d3144df94
(bug 30625) Add, to every API upload response, the warnings raised.

The current API implementation has a parameter for uploads that is
called "ignorewarnings". Currently, it will not only suppress any
warnings from stopping the upload, it will also lose any data from
those warnings.

This patch is sort of on the way to solving Bug 30625, which is in
the UploadWizard extension. That extension needs to know when a file
upload *will* fail, barring a change in some data, in order to make
it easier for a user to fix the foreseeable problems. The solution is
either to fix it this way, or to somehow spoof a file upload, and see
if it succeeds. In the hopes that other extensions will also find
this useful, I opted for the former.

Change-Id: I08b4e29e89ade6cf391ae044fceb788aaba3f5b4
includes/api/ApiUpload.php