}
$this->stash = new UploadStash( $this->repo, $this->user );
}
-
- return true;
}
/**
$this->verifyChunk();
// Create a local stash target
- $this->mLocalFile = parent::stashFile();
+ $this->mLocalFile = parent::stashFile( $user );
// Update the initial file offset (based on file size)
$this->mOffset = $this->mLocalFile->getSize();
$this->mFileKey = $this->mLocalFile->getFileKey();
}
/**
- * 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;
}