From 650b76518b8678e96ba37eab48d029b47b29b529 Mon Sep 17 00:00:00 2001 From: Gilles Dubuc Date: Fri, 5 Sep 2014 09:31:00 +0200 Subject: [PATCH] Chunked upload result should consistently have a "stage" value for "Poll" Change-Id: If9c2b215c43eef002482695701182c471f8bb450 Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/855 --- includes/api/ApiUpload.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index aa8fe21db0..657181b77a 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -241,6 +241,7 @@ class ApiUpload extends ApiBase { ) ) ); $result['result'] = 'Poll'; + $result['stage'] = 'queued'; } else { $status = $this->mUpload->concatenateChunks(); if ( !$status->isGood() ) { @@ -631,6 +632,7 @@ class ApiUpload extends ApiBase { ) ) ); $result['result'] = 'Poll'; + $result['stage'] = 'queued'; } else { /** @var $status Status */ $status = $this->mUpload->performUpload( $this->mParams['comment'], -- 2.20.1