Bug: T87535
Change-Id: If68e0075e73a78c1dd8d95839f7ee9374a995201
$status = $this->mUpload->addChunk(
$chunkPath, $chunkSize, $this->mParams['offset'] );
if ( !$status->isGood() ) {
- $this->dieUsage( $status->getWikiText(), 'stashfailed' );
+ $extradata = array(
+ 'offset' => $this->mUpload->getOffset(),
+ );
+
+ $this->dieUsage( $status->getWikiText(), 'stashfailed', 0, $extradata );
return array();
}
}
/**
- * Gets the current offset in fromt the stashedupload table
+ * Get the offset at which the next uploaded chunk will be appended to
* @return int Current byte offset of the chunk file set
*/
- private function getOffset() {
+ public function getOffset() {
if ( $this->mOffset !== null ) {
return $this->mOffset;
}