XF 1.3 File upload limits

Neil E.

Active member
A user needs to upload some video files, but runs into a size limit that seems to be around 10Mb.
The XF attachment file size is currently set to 25600 Kb.
PHP configuration shows the maximum_allowed_size for uploaded files is 200Mb.

.htacess contains:
# Use PHP5 as default
AddHandler application/x-httpd-php5 .php

Is there something else required in .htaccess? Anything else I should check?


XenForo moderator
Staff member
You may need to increase several PHP settings, such as php_value upload_max_filesize and php_value post_max_size.

Neil E.

Active member
I changed the PHP settings.
upload_max_filesize is now 32M
post_max_size is now 64M
memory_limit is set to 256M

A 15Mb file (XF attachment size at 25Mb) uploads, but the progress indication is messed up. The Ajax indicator shows repeating bars to indicate the upload, but never turns off. If I wait for several minutes, then post the topic (Ajax still running), the file is shown as an attachment. So the upload takes place, but the user does not know it has occurred. Any ideas?


XenForo developer
Staff member
For debugging, can you try turning the Flash uploader off? If that doesn't give any more information, ideally turn off JS temporarily as that should expose as much as possible directly to the browser. I'm really just trying to figure out what sort of response we get from the server.