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

XF 1.4 File Upload Problem

#1
I can not upload pdf file of size greater than 2 MB. When I try it says "File Not selected".

I have checked attachment settings where pdf files are allowed and max file upload limit set to 30MB. I have checked my LEMP set up where File Upload limit is set to 50MB both in PHP and in Nginx. I am running 4 websites in the same linode VPS. But only with xenforo installation this 2 MB limit apply.

Is there anything, I need to change from xenforo part?
 

Brogan

XenForo moderator
Staff member
#2
There are a couple of PHP settings which need to be increased to support large uploads.
Try adding the following lines to your .htaccess file:

php_value upload_max_filesize 30M
php_value post_max_size 30M
 

Brogan

XenForo moderator
Staff member
#4
If they are already set in php.in then there is another issue at play.

if you go to admin.php?tools/phpinfo what do you see for the various settings?