Page 1 of 1

Max file size

Posted: Tue Jun 11, 2024 1:27 pm
by PascalFR
Script URL:
Version of script: 3.4.5
Hosting company: IONOS
URL of phpinfo.php:

Hello,

When I want to upload a pdf (86mb)in the knowledgebase, I have this message:
An error occurred when trying to upload. Please try again later.

I have correctly entered my PHP.ini:
post_max_size = 256M
upload_max_filesize = 256M
max_file_uploads = 10
post_max_size = 256M

And When I ask Hesk for the file limit I have this:
Server configuration limits
upload_max_filesize: 256M
max_file_uploads: 10
post_max_size: 256M
Number per post 5
Maximum file size 60MB (megabytes)

But when I want to change the "Maximun file size" to 128mb, HESK doesn't change it:
Note: Your server does not allow large enough posts, try reducing number of attachments or allowed file size!

Could you help me please to up the "maximum file size"

Many thanks

Re: Max file size

Posted: Tue Jun 11, 2024 2:02 pm
by Klemen
Normally, to support legacy file uploads, the post_max_size should be:

Number per post * Maximum file size + 1

In your case:
5 * 60 + 1 = 301 Mb
5 * 128 + 1 = 641 Mb

However, from Hesk 3.3.x onwards, you can ignore the "Your server does not allow large enough posts" notice because practically all modern browsers will support the asynchronous upload.

Why do you get the "An error occurred when trying to upload" error I don't know. Maybe some other server-side limit is being reached?

A better solution could be to upload large files somewhere else and just link to them in Hesk.

Re: Max file size

Posted: Wed Jun 12, 2024 8:21 am
by PascalFR
actually my host limits it to 64mb whatever happens

:( :(

Re: Max file size

Posted: Wed Jun 12, 2024 9:57 am
by Klemen
Then changing host is the way to go :)

Re: Max file size

Posted: Thu Jun 13, 2024 6:16 am
by PascalFR
yes it's a test server, I hope the production server will be ok, it's not the same host