- Edited
In the current Ticket Settings and Options, the maximum value of the Maximum File Size is 2MB. How can I upload a file of size 10MB?
In the current Ticket Settings and Options, the maximum value of the Maximum File Size is 2MB. How can I upload a file of size 10MB?
I would increase the uploadlimit( upload_max_filesize ) in the php.ini (on my centos server its at /etc/php.ini )After you did that you can change the maximum filesize in the "Ticket Settings Options".Log in as AdminSwitch to Admin PanelClick on SettingsClick on TicketsChange Maximum Filesize (one of the last points on the page)I have tested it with 1.9.3 and 1.9.4-RC5 I guess it would be the same with 1.9.2
The only thing that these instructions have left out is that after you make changes to your php.ini a webserver software restart is in order (Apache or IIS). You would then be able to change the file size in the Admin control panel.
I have changed the value of upload_max_filesize to 51M in php.ini and restarted the Apache Server. On the "Ticket Settings and Options" page under Admin Panel, I can now set the Maximum File Size of attachments up to 512MB.
Howerver, I cannot upload a file with size 336MB and I got the following error messages in the Apache's error.log. It seems that osTicket have set a limit on the file size to 8MB.
==============
PHP Warning: POST Content-Length of 344634845 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referer: http://10.13.143.240/open.php PHP Warning: POST Content-Length of 344634853 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referer: http://10.13.143.240/open.php PHP Warning: POST Content-Length of 344634845 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referer: http://10.13.143.240/open.php (OS 64)The specified network name is no longer available. : AH00341: winnt_accept: Asynchronous AcceptEx failed. PHP Warning: POST Content-Length of 344634837 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referer: http://10.13.143.240/open.php (OS 64)The specified network name is no longer available. : AH00341: winnt_accept: Asynchronous AcceptEx failed. PHP Warning: POST Content-Length of 344634845 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referer: http://10.13.143.240/open.php
==============
Any help!
Re: "It seems that osTicket have set a limit on the file size to 8MB."This statement is simply not true. It's my understanding that two PHP configuration options control the maximum upload size: upload_max_filesize and post_max_size. You need to make sure that you set them both.Files of course take time to upload, and PHP scripts have a maximum execution time. So you would also need to edit max_input_time and max_execution_time to something like 300 (5 minutes specified in seconds).Lastly when PHP is handling an incoming POST it needs to keep some of the incoming data in memory. So you may need to tweak your memory_limit directive.Some other things you may want to read:http://php.net/manual/en/features.file-upload.php
@[deleted], How did you resolve this issue?
Edit PHP.ini.save.restart webserver software.
or just use some cloud service and put a link