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