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

XF 1.2 Cant upload large files.

#1
Hello. I have a problem with uploading large files.
Permissions in xenforo admin set to 100M
In php.ini upload_max_filesize = 100M;
post_max_size = 150M;
Memory_limit = 256M;
data and internal_data chmod set to 777;

Still can not upload files larger than 12 M-15M; Always the same error;
 
#6
+ I need help with permissions in folder internal_data. All files was set to 777. Trying to set everything back, but i dont remember what was the standart permissions.
 

Chris D

XenForo developer
Staff member
#9
777 is the correct values for internal_data and data AND the files within.

See step 3: http://xenforo.com/help/installation/

Once the files are finished uploading, you must set permissions (or CHMOD) several places. This is necessary to ensure that XenForo can write to those parts of your server. You can usually do this with your FTP client.

  1. In the set of files and directories you just uploaded, you will see 2 folders: data andinternal_data.
  2. These two directories must be set to world writeable (CHMOD 0777) or give the IUSR_ Full Control in Windows.
 

Jake Bunce

XenForo moderator
Staff member
#11
That is the non-specific upload error message. But if it happens only on large files then it must be a server limit of some kind.

Here are some server settings that may be limiting:

PHP:
max_execution_time
memory_limit
post_max_size
upload_max_filesize

MySQL:
max_allowed_packet
max_packet_size
wait_timeout
 
#12
That is the non-specific upload error message. But if it happens only on large files then it must be a server limit of some kind.

Here are some server settings that may be limiting:

PHP:
max_execution_time
memory_limit
post_max_size
upload_max_filesize

MySQL:
max_allowed_packet
max_packet_size
wait_timeout
max_execution_time = 300
memory_limit = 256M
post_max_size = 150M
upload_max_filesize = 100M
Not working.

Why i need to change mysql parameters?
 

Steve F

Well-known member
#15
.rar files dont want to start even uploading - instant error message :oops:
Usually if it is related to a file extension you will receive a error for that, can you upload a normal .zip file the same size? Do you have 'rar' in the allowed list in the ACP?
 
#16
Usually if it is related to a file extension you will receive a error for that, can you upload a normal .zip file the same size? Do you have 'rar' in the allowed list in the ACP?
Yes i have.
I can upload 12Mb .rar file but with 30+ MB appears error message as shown higher.

Edited my.cnf file
max_allowed_packet = 110M

Restarted every service and still this doesnt want to work.

This is the closest fix I can think.
Edited nginx.conf
client_max_body_size = 110M between http { }, restated nginx and no. Still error message
 
#17
I have apache/nginx as front/back-end.
Anyone can post your configuration of php.ini, my.cnf, nginx.conf with working 50M+ upload?
I have no ideas what to do