Merge "Chunked upload result should consistently have a "stage" value for "Poll""
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 8 Sep 2014 15:16:53 +0000 (15:16 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 8 Sep 2014 15:16:53 +0000 (15:16 +0000)
includes/api/ApiUpload.php

index aa8fe21..657181b 100644 (file)
@@ -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'],