uploading files works when my php.ini settings are set to default values:
upload_max_filesize = 20M
post_max_size = 20M
memory_limit 128M
However, we wanted bigger attachments, so we increased to:
upload_max_filesize = 100M
post_max_size = 100M
memory_limit 128M
Now, we can change the allowed size in Settings>Tickets>Ticket attachment settings and Settings>System>Agent Max File Size.
However, whatever size we choose here, when we attempt to attach a file to a ticket, we get a javascript popup with the text:
File Upload Error:
nameofthefile.ext
File is too largeundefined
There are no messages in the console and no failed requests.
Further details:
- we run with the Apache web server, php 7.2
- osTicket is at the latest version
- We use the file system storage for the attachments
- After changes in php.ini, the Apache service is restarted
- There are no errors in the apache error log
- It seems like no request is made before this error is shown
Also, when reverting the changes in the php.ini file, and lowering the limits in the settings accordingly, we now keep getting this error.
Adding because someone seemed to have gotten this due to a DB table corruption: using mysqlcheck, all tables seem fine.