XF 1.1 The uploaded file is too large for the server to process

Jeffin

Well-known member
Hi,

I've tried several times uploading a pdf file into the resources area but it always throws back the error: "The uploaded file is too large for the server to process". I've increased the upload limit for files from admin.php but it still shows this error. Is this something for which I should contact my hosting company?

Thank you.
 

Mike

XenForo developer
Staff member
That generally reflects the max_upload_size set in your PHP. You may be able to change it, but you should probably contact your host for guidance.
 

Jeffin

Well-known member
That generally reflects the max_upload_size set in your PHP. You may be able to change it, but you should probably contact your host for guidance.
Thank you Mike. I'll contact them or I may end up messing something else. :)
 

Kainzo

Active member
That generally reflects the max_upload_size set in your PHP. You may be able to change it, but you should probably contact your host for guidance.
Can you state where in PHP it would normally be? I'm searching around now ;)
 

SoeHoe

Active member
Add this to .htaccess

Code:
<IfModule mod_php5.c>
   php_value upload_max_filesize 40M
   php_value post_max_size 40M
</IfModule>
 

Tracy Perry

Well-known member
Add this to .htaccess

Code:
<IfModule mod_php5.c>
   php_value upload_max_filesize 40M
   php_value post_max_size 40M
</IfModule>
Only works if you are using an HTTP server that recognizes .htaccess.... which nginx doesn't. Your solution is only good for those, whereas modifying the php.ini will work for any of them.
 
Top