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

A question on uploading files/photos

jadmperry

Well-known member
#1
Not sure if this has been asked/answered before. I just tried to post a photo via uploading it as an attachment. My upload failed because the file was too large. My question is whether there is auto-resizing feature (either native or as a plug in). If not, I think this would be a great feature.
 

Brogan

XenForo moderator
Staff member
#2
This is from the FAQ: http://xenforo.com/community/threads/frequently-asked-questions.5183/

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.

I have attachments set to 1440x960, 1024KB and I can upload 6MB files without a problem.
 

Wuebit

Well-known member
#3
also adding this if its a very big size in your .htaccess

PHP:
php_value upload_max_filesize 20M
php_value post_max_size 20M