Don't allow completing a partial stash upload
authorMatthias Mullie <git@mullie.eu>
Wed, 15 May 2019 07:13:15 +0000 (09:13 +0200)
committerMatthias Mullie <git@mullie.eu>
Wed, 15 May 2019 07:13:16 +0000 (09:13 +0200)
commit5deab781bd80c751ce79c2d6c130078061902c7c
treec68aa4e808eacecb70e7ea6e6a31c6ff845e82d6
parent1e5ff7f524c1572ebecd9cd34562d674a87db49f
Don't allow completing a partial stash upload

finishUploadToStash could be called on an incomplete upload.
E.g. upload 1 chunk (that gets you the filekey) and then call
finishUploadToStash's finishUpload.

This adds another check for the stash result. The result will
only be 'Success' if all chunks have been submitted (or when
the file was uploaded as a whole, not chunked)
If we're still missing some chunks, result will be 'Continue'.

Bug: T190988
Change-Id: Ia0a4df0306b3e0cc0f2453f986b73bedd88241d3
resources/src/mediawiki.api/upload.js