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

XF 1.3 Error Uploading Large Images

#1
Hi there,

I have been having this problem for quite a large time, but I have never been able to resolve it. Basically whenever I attempt to upload any large images onto my forums as an attachment I get the following error :
Screenshot from 2014-07-08 23:54:36.png

Initially I thought it may be due to the PHP upload limit, so I increased this using the following settings in my PHP FPM ini (I use nginx with PHP FPM)

Code:
upload_max_filesize = 128M
post_max_size = 128M
max_file_uploads = 40
However this made no difference, I have also increased the max memory for a PHP script to 128M

Code:
memory_limit = 128M
However, this made no difference, and I believe the memory limit should be enough to upload videos and pictures of up to 10M. My attachments configuration looks like below:

Screenshot from 2014-07-08 23:59:28.png

I have also tried using both GD and ImageMagick and I get the same error on both, and the error does not seem to log anything in the server error log

So I'm not sure where to go from here, or where the problem could be, so any help would be much appreciated, if you need any more information please don't hesitate to ask

Many thanks
Luke
 

Tracy Perry

Well-known member
#2
There is also a setting in nginx that has some bearing on this sometimes (especially with phpmyadmin).
Code:
        client_max_body_size 75m;