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

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

Jeffin

Well-known member
#1
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
#2
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.
 

SoeHoe

Active member
#8
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
#9
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.