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

Images upload limit?

Discussion in 'XenForo Questions and Support' started by Bellinis, Nov 15, 2011.

  1. Bellinis

    Bellinis Active Member

    I'm a little confused with the upload limits.

    For attachments I've set a filesize of 2048kb and max amount 10.
    But how does this work for uploaded (inline) images? I noticed people are still able to add more than 10 images in their posts. Images are not attachments?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Images linked to on other servers aren't covered by the maximum number of attachments set in the ACP.
    These are just hotlinked/embedded and not attached/uploaded.

    For uploaded images, the following applies:

    Why can't I upload an image, even though it is smaller than the maximum dimensions (pixels) permitted?
    Server-side file size (KB) resizing is not supported. Any files which are larger than the maximum size specified in theACP -> Options -> Attachments: Maximum Attachment File Size (KB) will be rejected.

    Why can I upload an image, even though it is larger than the maximum file size (KB) permitted?
    Uploaded files are first resized based on the maximum physical dimensions (pixels) set in the ACP -> Options -> Attachments: Maximum Attachment Image Dimensions. If the resized image is below the maximum file size (KB) limit, then it will be allowed.

  3. Bellinis

    Bellinis Active Member

    Thanks for the quick reply!
    Well, I just checked on my site why someone was still able to upload more than 10 images, but I think I understand why now. That member uploaded 13 of the same images (as a test), but when I edit the post to see the code, I see just 10 unique attachment ID's:
    So I guess if there where 13 different pictures, it wouldn't have worked.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    They just embedded it multiple times.
  5. Bellinis

    Bellinis Active Member

    Yup, that must be it. :D
  6. Bellinis

    Bellinis Active Member

    One more question:

    I didn't set a max size for the images, so now images auto resize to fit in the post. Great, but can I also set the auto resize dimensions and that you are still able to click the image to see the full size? If you know what I mean ;)
  7. Brogan

    Brogan XenForo Moderator Staff Member

    I think you mean this.

    .bbCodeImage {
    max-width: 100%;

    Add that to EXTRA.css and change the % to suit, or change to a pixel value.
  8. Bellinis

    Bellinis Active Member

    Awesome, thanks Brogan!

Share This Page