Hello.
When I'm try to upload a png, the debug file has the following:
Fully initialised
Unstubbing $wgContLang on call of $wgContLang->checkTitleEncoding from WebRequest::getGPCVal
Language::loadLocalisation(): got localisation for es from source
Language::loadLocalisation(): got localisation for en from source
Unstubbing $wgUser on call of $wgUser->isAllowed from Title::userCanRead
Cache miss for user 2
Unstubbing $wgLoadBalancer on call of $wgLoadBalancer->getConnection from wfGetDB
Logged in from session
Unstubbing $wgMessageCache on call of $wgMessageCache->getTransform from wfMsgGetKey
Unstubbing $wgLang on call of $wgLang->getCode from MessageCache::get
MessageCache::load(): got from global cache
Unstubbing $wgParser on call of $wgParser->firstCallInit from MessageCache::transform
UploadForm: watchthis is: ''
WebRequest::getFileName() 'LogoCamaleon.png' normalized to 'LogoCamaleon.png'
User::isBlocked: enter
User::getBlockedStatus: checking...
IP: 164.73.36.53
Block::load: '164.73.36.53', '2', 1
User::getBlockedStatus: No block.
MacBinary: 0000: 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 .PNG........IHDR
MacBinary: 0010: 00 00 00 b9 00 00 00 8b 08 02 00 00 01 c5 7a 9f ..............z.
MacBinary: 0020: 3b 00 00 00 04 67 41 4d 41 00 00 b1 8f 0b fc 61 ;....gAMA......a
MacBinary: 0030: 05 00 00 00 06 62 4b 47 44 00 ff 00 ff 00 ff a0 .....bKGD.......
MacBinary: 0040: bd a7 93 00 00 00 09 70 48 59 73 00 00 0b 13 00 .......pHYs.....
MacBinary: 0050: 00 0b 13 01 00 9a 9c 18 00 00 00 07 74 49 4d 45 ............tIME
MacBinary: 0060: 07 d6 05 09 15 20 13 b6 8c 91 8f 00 00 20 00 49 ..... ....... .I
MacBinary: 0070: 44 41 54 78 da 24 d8 c9 af a6 d9 61 98 f7 33 9f DATx.$.....a..3.
MacBinary::loadHeader: header bytes 0 and 74 not null
MimeMagic::MimeMagic: loading mime types from includes/mime.types
MimeMagic::MimeMagic: loading mime info from includes/mime.info
DjVuImage::getInfo: not a DjVu file
MimeMagic::detectMimeType: magic mime type of /tmp/phpSAl8QB: text/plain
MimeMagic::guessMimeType: final mime type of /tmp/phpSAl8QB: text/plain
SpecialUpload::verifyExtension: mime type text/plain mismatches file extension png, rejecting file
OutputPage::sendCacheControl: private caching; **
Then, the upload page reply is an error...
I think that all files are detected like text/plain ...(I can see the
same with ppt's).
My solution was set $wgMimeDetectorCommand="file -bi" and
$wgVerifyMimeType = false in LocalSettings....
But now, all office files (.xls,.ppt etc.) are detected as
application/msword and not as application/vnd.powerpoint (o excel...)....
This work OK, but the content of the image table can be wrong.
Can be the wrong data in image table a great problem in the future?
(today doesn't seems to be a problem...)
Thanks.
Fernando Carpani
PS: Excuse my english again !!!!!