XF 2.1 upload size limit

bforesman

New member
I've set php to allow 100Mb upload on form and settings to 51200kb which should allow me to upload a 34mB file, right???

Apparently wrong, so, what have I missed?
 
Last edited:
There are various other server side settings which may need to be increased to allow large files to be uploaded.

For PHP, variables such as:
post_max_size
upload_max_filesize
upload_tmp_dir

You may also need to adjust some MySQL values, such as:
max_allowed_packet
max_packet_size
wait_timeout
 
You should also take a look at this point: https://xenforo.com/xf2-docs/manual/config/#other-variables

Sometimes it is the image size instead of the filesize. Check the image size like described here.
The maximum size of an image (in total numbers of pixels) that XenForo will attempt to resize. Images larger than this will simply not be resized and thus may be rejected. This is calculated using width × height.
$config['maxImageResizePixelCount'] = 20000000;
 
I've set php to allow 100Mb upload on form and settings to 51200kb which should allow me to upload a 34mB file, right???

Apparently wrong, so, what have I missed?
One of my add-ons allows you to upload very large files in smaller chunks. Your problem seems to be server related but I thought you could be interested into something like this.

 
Last edited:
  • Like
Reactions: arn
Top Bottom