Set values from query params (bug 12750)
[lhc/web/wiklou.git] / includes / UploadFromStash.php
1 <?php
2
3 class UploadFromStash extends UploadBase {
4 function initialize( &$sessionData ) {
5 /**
6 * Confirming a temporarily stashed upload.
7 * We don't want path names to be forged, so we keep
8 * them in the session on the server and just give
9 * an opaque key to the user agent.
10 */
11
12 $this->mTempPath = $sessionData['mTempPath'];
13 $this->mFileSize = $sessionData['mFileSize'];
14 $this->mSrcName = $sessionData['mSrcName'];
15 $this->mFileProps = $sessionData['mFileProps'];
16 $this->mStashed = true;
17 $this->mRemoveTempFile = false;
18 }
19
20 /*
21 * File has been previously verified so no need to do so again.
22 */
23 protected function verifyFile( $tmpfile ) {
24 return true;
25 }
26 /*
27 * We're here from "ignore warnings anyway" so return just OK
28 */
29 function checkWarnings() {
30 return array();
31 }
32 }