return $this->mLocalFile;
}
- /**
- * This should return the key instead of the UploadStashFile instance, for backward compatibility.
- * @return string
- */
- public function stashSession() {
- return $this->stashFile()->getFileKey();
- }
-
/**
* Remove a temporarily kept file stashed by saveTempUploadedFile().
* @return bool Success
}
/**
- * Perform the upload, then remove the database record afterward.
- * @param string $comment
- * @param string $pageText
- * @param bool $watch
- * @param User $user
- * @return Status
+ * Remove the database record after a successful upload.
*/
- public function performUpload( $comment, $pageText, $watch, $user ) {
- $rv = parent::performUpload( $comment, $pageText, $watch, $user );
+ public function postProcessUpload() {
+ parent::postProcessUpload();
$this->unsaveUploadedFile();
-
- return $rv;
}
}