1. 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

Discussion in 'Resolved Bug Reports' started by xf_phantom, Jun 11, 2013.

  1. xf_phantom

    xf_phantom Well-Known Member

    If i'm using
    if ($uploadpath)
    $file XenForo_Upload::getUploadedFile('upload_file');

                if (
    $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: Jun 11, 2013
  2. Chris D

    Chris D XenForo Developer Staff Member

    It may be just an oversight. Or it may be just because no one uses BMP files any more.
  3. xf_phantom

    xf_phantom Well-Known Member

    Then i wouldn't have run into the problem:p
  4. Chris D

    Chris D XenForo Developer Staff Member

    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?
  5. Biker

    Biker Well-Known Member

    Bit map files tend to be overly huge, and as Chris said it's not a format that's widely used any more.
  6. Mike

    Mike XenForo Developer Staff Member

    Tiff is an image format but we don't include that either.

    It only handles "web format" images intentionally.
    Chris D likes this.

Share This Page