New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error attaching a file undefined500 #6337
Comments
Did you try the below? If that works then you need to go to Admin Panel > Settings > Tickets, click Config next to Ticket Attachment Settings, configure Maximum File Size, and click Save. Cheers. |
It is already configured at 128 mb and as I said it worked fine. |
Can you open the browser's Developer Tools (right click the page and click Inspect), go to the Network tab, upload a file, click on the failed request in the Network tab, and click the Response tab within that. There you should see a more detailed error message. Cheers. |
Nothing comes out or I don't know how to do it |
Response |
File Upload Error 6 means missing temporary folder. Maybe you have path issues, permission issues, etc. but the below link should help you. Cheers. |
it may be a php problem |
Then I would definitely recommend contacting your hosting provider for further assistance. Cheers. |
ok Thank you |
Same issue here. @shields1968 did you ever fix? Version 1.16.1. No errors in logs or response. Will be updating to latest version today. |
Same issue here, using version 1.17.3. No error in apache or php fpm logs. |
I found this: https://docs.sportdata.org/knowledge-base/fix-file-upload-error-http-500-undefined/ which fixes the issue for my 1.17.3 installation. Tried with zip, 7z or rar files and it works. |
I updated from 1.17.2 -> 1.17.3, had odd issues in uploading 1.17.2, but none the less it would eventually work. Did all the actions listed above. I am now able to upload certain files (was not initially) - zip, txt, pdf for example. Many others I am not. I have no restrictions. Things like tgz, exe, readme.md, tons of others end up with the. error attaching a file undefined 500 |
Just to update my previous comment. So far only I am able to upload Zip files. 2 of my users, the only 2 I have tested, are not able to upload a zip file. They are able to upload PDF and TXT however. With the zip file in question I renamed to be a PDF and still encountered the same error. |
Just comment out the following lines: However, apply these changes at your own risk. Doing so will open your instance to possible file upload vulns. With this being said, we are looking into an alternative MIME type check, if possible. Cheers. |
Thank you for this JediKev and the prompt response. I have performed the edit as prescribed. This did work! I do understand the risks, hopefully a good fix will be posted back to here as well. |
Hi, do you have alternatives? |
Prerequisites
For more information on how to write a good bug report
Description
[Description of the bug or feature]
the problem I have is that I cannot attach files when a user creates a new ticket
also do not paste an image inside the ticket
however it was working fine before
Expected behavior:
files to be attached
Actual behavior:
it does not attach the files nor can you drag an image
when creating a ticket
I attach an image of the error
Versions
server information
Versión osTicket | v1.15.8 (0daca43) — Hasta la fecha
Servidor del Software Web | Apache
Versión MySQL | 5.7.40
Versión PHP | 7.3.33
The text was updated successfully, but these errors were encountered: