xf_phantom
Well-known member
If i'm using
in my addon and i'm uploading a bmp, $file->isImage() won't be true because of you extension check.
Any reason why bmp isn't included here?
PHP:
if ($uploadpath)
{
$file = XenForo_Upload::getUploadedFile('upload_file');
if ($file)
{
$file->setConstraints(array('height' => 32, 'width' => 32));
if ($file->isImage() AND $file->isValid())
{
Any reason why bmp isn't included here?
Last edited: