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

Fixed Image uploads

#1
Hiya

I am trying to set my forum up to allow large image uploads as most modern cameras are good but i have ran into some issues....

Well the issues are it doesnt work :-(

We have increased the upload_max_filesize, post_max_size and max_execution_time in your php.ini file. T

http://www.plasterersforum.com/phpinfo.php

here is a screenshot of my attachment settings as well :)

Any ideas suggestions please this is doing my head it TPFAtt.png
 

Chris D

XenForo developer
Staff member
#2
The behaviour you're describing doesn't necessarily sound like a bug. Generally this will still be a server configuration.

What is the error message you're receiving?

There's an additional built in limit within XenForo that will skip files that are too large to resize (to avoid memory issues).

Incidentally, your memory_limit of 96M is unlikely to be anywhere near sufficient to upload and resize large images, so you will need to look at raising that, too.
 
#3
it just says file too large...

I have emailed my VPS about the memory limit....

Where is the built in limit?

Most phones these days have great cameras... if people cannot upload directly from them then the feature is pointless... its hard enough competing with facebook so this is essential
 

Chris D

XenForo developer
Staff member
#4
In config.php add the following:

PHP:
$config['maxImageResizePixelCount'] = 20000000;
Note the value above is actually the default so you would be looking at something larger than that.

What was the exact error message word for word, or a screenshot? It has some relevance and may help us identify more easily in the code where the error is occurring.
 

Chris D

XenForo developer
Staff member
#6
Ironically, the actual reason for this is that your maximum attachment file size is too large.

I just clocked how big it actually was - too many zeroes to register it being a problem - but indeed, I reckon if you made it something reasonable like 200000 (which is still ~200 MB) it might go through.