• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

As designed XenForo_Upload::_checkImageState

xf_phantom

Well-known member
#1
If i'm using
PHP:
if ($uploadpath)
        {
            $file = XenForo_Upload::getUploadedFile('upload_file');

            if ($file)
            {
                $file->setConstraints(array('height' => 32, 'width' => 32));

                if ($file->isImage() AND $file->isValid())
                {
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?
 
Last edited:

Chris D

XenForo developer
Staff member
#4
Well, clearly someone does use BMP files still, therefore why I said it could be an oversight :p

But - why use a BMP file?

Can you use another file format?