Make chunkedUpload match upload behavior
authorMatthias Mullie <git@mullie.eu>
Fri, 7 Jul 2017 15:11:25 +0000 (17:11 +0200)
committerMatthias Mullie <git@mullie.eu>
Wed, 30 Aug 2017 13:43:41 +0000 (15:43 +0200)
commit70281fd17ec689f44ab9c3ee1d4828db72b121a0
tree22ad8f798c21e54bf983ee5c1968f6271910fb01
parentaf28f35696ce2d50bdc0cf62af3ceaf524dc8c68
Make chunkedUpload match upload behavior

.upload will upload the entire file, then reject the promise
if it has warnings.
This also happened in chunkedUpload, but a warning could already
be present after uploading only 1 chunk & that rejection would
cause the entire chain of chunks to stop.
Instead, it'll now keep uploading all chunks & then reject with
the complete upload data.

Also fixed how abort is dealt with when retrying because of
network issues.

Change-Id: I8ecef2271359a9505c8c5fa22883b0df55e9e914
resources/src/mediawiki/api/upload.js