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

Images upload limit?

Bellinis

Active member
#1
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?
 

Brogan

XenForo moderator
Staff member
#2
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.

http://xenforo.com/community/threads/frequently-asked-questions.5183/#post-180445
 

Bellinis

Active member
#3
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:
Code:
[ATTACH=full]19364[/ATTACH][ATTACH=full]19364[/ATTACH]
[ATTACH=full]19365[/ATTACH][ATTACH=full]19364[/ATTACH]
[ATTACH=full]19366[/ATTACH][ATTACH=full]19366[/ATTACH]
[ATTACH=full]19367[/ATTACH][ATTACH=full]19368[/ATTACH]
[ATTACH=full]19369[/ATTACH][ATTACH=full]19370[/ATTACH]
[ATTACH=full]19372[/ATTACH][ATTACH=full]19371[/ATTACH]
[ATTACH=full]19370[/ATTACH][ATTACH=full]19373[/ATTACH]
[ATTACH]19364[/ATTACH][ATTACH]19365[/ATTACH][ATTACH]19366[/ATTACH]
[ATTACH]19367[/ATTACH][ATTACH]19368[/ATTACH][ATTACH]19369[/ATTACH]
[ATTACH]19370[/ATTACH][ATTACH]19371[/ATTACH][ATTACH]19372[/ATTACH]
[ATTACH]19373[/ATTACH][ATTACH]19364[/ATTACH][ATTACH]19365[/ATTACH]
[ATTACH]19366[/ATTACH][ATTACH]19367[/ATTACH][ATTACH]19368[/ATTACH]
[ATTACH]19369[/ATTACH][ATTACH]19370[/ATTACH][ATTACH]19371[/ATTACH]
[ATTACH]19372[/ATTACH][ATTACH]19373[/ATTACH]
So I guess if there where 13 different pictures, it wouldn't have worked.
 

Bellinis

Active member
#6
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 ;)
 

Brogan

XenForo moderator
Staff member
#7
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.