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

Maximum attachment size

#1
I just wanted to make sure I wasn't missing a setting for maximum file size for attachments, I have set CP > Options > Attachments > Maximum Attachment File Size to 512000 to allow for world backups for Minecraft and such to be put up whenever we re-render the world, I'm just curios if there's something other than this setting that might be interfering with this?

Currently what happens is the file uploads all the way up to 100% then never appears in the attachment directory. other attachments are working properly, such as screenshots, is there some other component I'm missing?
 

Jake Bunce

XenForo moderator
Staff member
#3
The log might contain a more detailed error to clarify what the problem is:

Admin CP -> Tools -> Server Error Log

But Brogan is right. If you want to upload 500MB files then you will undoubtedly need to adjust your server settings. Here are some server settings that might be limiting:

PHP:
max_execution_time
memory_limit
post_max_size
upload_max_filesize

MySQL:
max_allowed_packet
max_packet_size
wait_timeout

The attachment system isn't ideal for large files like this.
 
#4
Thank you both very much I'll take a look at this, Just out of curiosity, what would you consider the maximum recommended attachment size if just Xenforo was considered?
 

Jake Bunce

XenForo moderator
Staff member
#5
2MB is within the limits of most web hosts. In practice I have seen forums with attachments as large as 50MB, but then you have to increase the server limits.
 
#6
I got it working, thanks for your help, one other question though, I'm probably overlooking it somewhere, should I need to, where is the ability to delete attachments?