/** * Remove a temporarily kept file stashed by saveTempUploadedFile(). * * @return Boolean: success */ protected function unsaveUploadedFile() { if ( !( $this->mUpload instanceof UploadFromStash ) ) { return true; } $success = $this->mUpload->unsaveUploadedFile(); if ( !$success ) { $this->getOutput()->showFileDeleteError( $this->mUpload->getTempPath() ); return false; } else { return true; } }