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

error when uploading a bmp to pfs

Kilandor
#22044 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 лет назад)