Max file size

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
PascalFR
Posts: 6
Joined: Mon Mar 02, 2020 2:27 pm

Max file size

Post 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
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Re: Max file size

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
PascalFR
Posts: 6
Joined: Mon Mar 02, 2020 2:27 pm

Re: Max file size

Post by PascalFR »

actually my host limits it to 64mb whatever happens

:( :(
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Re: Max file size

Post by Klemen »

Then changing host is the way to go :)
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
PascalFR
Posts: 6
Joined: Mon Mar 02, 2020 2:27 pm

Re: Max file size

Post by PascalFR »

yes it's a test server, I hope the production server will be ok, it's not the same host
Post Reply