ElkArte Community

Project Support => Support => Topic started by: glops on December 05, 2016, 08:26:12 am

Title: Your file is too large. The maximum attachment size allowed is 128 KB.
Post by: glops on December 05, 2016, 08:26:12 am
Hello
I try to create a new topic and upload a file, but I have the following error
Your file is too large. The maximum attachment size allowed is 128 KB.

I have no access to php.ini and I cannot find my answer
How can I change the values to accept larger files ?
Thanks all
Title: Re: Your file is too large. The maximum attachment size allowed is 128 KB.
Post by: Spuds on December 05, 2016, 09:10:37 am
Go to Admin -> Forum -> Attachments & Avatars -> Attachment Settings

On that screen you will see "Max attachment size per post" and "Max size per attachment" settings.  Change those to what you can or want to support

The first is the total size of all attachments in a post, the second is the limit size of a single attachment in a post. 

If you enter a value greater than whats supported by your php.ini it will warn you about that issue.  You will have to contact your provider to increase that if it lower than your needs.
Title: Re: Your file is too large. The maximum attachment size allowed is 128 KB.
Post by: ahrasis on December 05, 2016, 09:44:54 am
If you are allowed to by your provider, try adding php.ini or .htaccess to your root with higher settings like:
upload_max_filesize = 128M
post_max_size = 256M

Otherwise you have to contact them to increase that settings for you.