Форумы / Cotonti / Support / Mime type for bmp is missing ??

error when uploading a bmp to pfs

ez
#1 08.01.2010 04:49
Hi there,

I have got the following error when uploading a bmp to pfs:
xxx.bmp : The mime type for bmp is missing. Uploading failed

How do I fix that ???

thnx,

Leo
==- I say: Keep it EZ -==
Trustmaster
#2 08.01.2010 05:11
Add it to datas/mimetype.php
May the Source be with you!
Kilandor
#3 08.01.2010 15:53
This is incorrect, images should not be going through the mimetype.php check, they have a special check of their own.

Added 53 minutes later:

Actually, I forgot why its like that, its due to php's lack of a imagecreatefrombmp function.
Place this in your datas/mimetype.php at the bottom, this will allow your bmp's to work.

$mime_type['bmp'][]		= array('image/bmp', 'BM', '0', '0', '2', '0');
Отредактировано: Kilandor (08.01.2010 16:47, 14 лет назад)
ez
#4 08.01.2010 23:34
@kilandor:
Thnks,

You are right.. Maybe we should remove bmp as an supported mimetype ???
It is not an used web format..

anyway, more information here: http://php.net/manual/en/function.imagecreatefromwbmp.php
Someone has made a custom: imagecreatefrombmp

Question, HOW can I remove .bmp from the supported pfs formats (I will remove it) ????

greets
==- I say: Keep it EZ -==
Kilandor
#5 09.01.2010 01:36
its in datas/extensions.php