From: Michael Dale Date: Thu, 6 Aug 2009 22:25:47 +0000 (+0000) Subject: * made wgMaxUploadSize check work with js2/firefogg uploading interface. X-Git-Tag: 1.31.0-rc.0~40455 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=699994b520949edbb5953453af5134283dbf394f;p=lhc%2Fweb%2Fwiklou.git * made wgMaxUploadSize check work with js2/firefogg uploading interface. --- diff --git a/includes/upload/UploadFromChunks.php b/includes/upload/UploadFromChunks.php index 5121a9507b..ce22b6549b 100644 --- a/includes/upload/UploadFromChunks.php +++ b/includes/upload/UploadFromChunks.php @@ -229,16 +229,14 @@ class UploadFromChunks extends UploadBase { } return $status; } else { - //check to make sure we have not expanded beyond $wgMaxUploadSize - if( ( filesize( $this->mTempAppendPath ) + filesize( $this->mTempPath ) ) > $wgMaxUploadSize ) - $status = Status::newFatal( 'largefileserver' ); - if( is_file( $this->getRealPath( $this->mTempAppendPath ) ) ){ $status = $this->appendToUploadFile( $this->mTempAppendPath, $this->mTempPath ); } else { $status = Status::newFatal( 'filenotfound', $this->mTempAppendPath ); } - + //check to make sure we have not expanded beyond $wgMaxUploadSize + if( filesize( $this->getRealPath( $this->mTempAppendPath ) ) > $wgMaxUploadSize ) + $status = Status::newFatal( 'largefileserver' ); return $status; } diff --git a/js2/mwEmbed/example_usage/Firefogg_Make_Advanced.html b/js2/mwEmbed/example_usage/Firefogg_Make_Advanced.html index 97746f5469..4c91bec4e6 100644 --- a/js2/mwEmbed/example_usage/Firefogg_Make_Advanced.html +++ b/js2/mwEmbed/example_usage/Firefogg_Make_Advanced.html @@ -1,7 +1,7 @@ - Firefogg - Make Ogg Video in your Browser + Firefogg - Make Ogg Video in your Browser