40 $upload = $request->getUpload(
'wpUploadFile' );
41 $desiredDestName = $request->getText(
'wpDestFile' );
42 if ( !$desiredDestName ) {
43 $desiredDestName = $upload->getName();
46 $this->
initialize( $desiredDestName, $upload );
55 $this->mUpload = $webRequestUpload;
57 $this->mUpload->getTempName(), $this->mUpload->getSize() );
65 # Allow all requests, even if no file is present, so that an error
66 # because a post_max_size or upload_max_filesize overflow
81 # Check for a post_max_size or upload_max_size overflow, so that a
82 # proper error can be shown to the user
83 if ( is_null( $this->mTempPath ) || $this->
isEmptyFile() ) {
84 if ( $this->mUpload->isIniSizeOverflow() ) {
89 self::getMaxPhpUploadSize()
95 return parent::verifyUpload();