Index: trunk/phase3/includes/upload/UploadBase.php |
— | — | @@ -344,9 +344,8 @@ |
345 | 345 | $this->mFileProps = File::getPropsFromPath( $this->mTempPath, $this->mFinalExtension ); |
346 | 346 | $this->checkMacBinary(); |
347 | 347 | |
348 | | - # magically determine mime type |
| 348 | + $mime = $this->mFileProps[ 'mime' ]; |
349 | 349 | $magic = MimeMagic::singleton(); |
350 | | - $mime = $magic->guessMimeType( $this->mTempPath, false ); |
351 | 350 | |
352 | 351 | # check mime type, if desired |
353 | 352 | $status = $this->verifyMimeType( $magic, $mime ); |