Hello, I'm having a problem sending attached file on the ticket. The error message is:File upload error: undefined500I'm using PHP5 + MySQL + IIS6O.S: Windows 2003I can not find the problem :/Thanks on Advance
Please help us to help you by reading and following the posting
guidelines located in this thread: Please read before requesting assistance. The more information you give us the better we will be able to assist you. Thank you.
Sorry, I forgot to mention the version of osTicket.Version: osTicket (v1.9.7)Location: http://chamados.faculdadeunida.com.br/URL Problem: http://chamados.faculdadeunida.com.br/open.phpTry attach any archive.
PHP error logs?IIS Error logs?File attachment settings?Which file storage engine are you using? (database or the filesystem plugin)
No PHP ErrorsNo IIS Errors.I do not know where you configure the storage type of attachments. I think I'm using the filesystem.:/
osTicket by default uses the database.Unless you installed the "Storage :: Attachments on the Filesystem" plugin they are being stored in the database. It's likely that a 500 error is your webserver configuration. Something has to be getting logged in logs some where. Especially a 500 error.
I found the log error. :)#Software: Microsoft Internet Information Services 6.0#Version: 1.0#Date: 2015-07-15 10#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status 2015-07-15 11 W3SVC81291777 192.168.254.11 POST /scp/ajax.php/form/upload/attach - 80 - 192.168.254.102 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/43.0.2357.132+Safari/537.36 500 0 0
[httperr14.log](https://forum.osticket.com/assets/files/migrated/FileUpload/56/037728292e553a5a1edc47a1c7d468.log)
[ex150715.log](https://forum.osticket.com/assets/files/migrated/FileUpload/d0/d560b1ba4eb45dd0bb9e661d4c7eb0.log)
All that says is that someone accessed /scp/ajax.php/form/upload/attach using POST and it resulted in a 500 error. It doesn't tell us what the error actually was or what caused it. Take a peek at your PHP error log around those times. (2015-07-15 11) and see whats up. If you dont / cant find anything you may need to make your logging levels more verbose.
SOLVED!I was using PHP 5.3.9, updated to version 5.3.10 and it worked.