- Edited
I am continuing and updating my thread I opened in osTicket 1.15.x, in this new 1.17.x thread
(https://forum.osticket.com/d/100861-attachments-saved-but-not-linked-to-ticket)
I am facing a problem with inserting attachment in threads or when creating a new ticket. Randomly in some cases attachments uploaded are missing in the thread.
osTicket Version: v1.17.3 (ca95150)
Web Server Software: Apache/2.4.56 (Fedora Linux)
MySQL Version: 8.0.30
PHP Version: 8.1.17
All PHP extensions installed and enabled.
**Note: I have commented Lines 3975 to 3977 of class.forms.php to fix the http 500 issue with zip attachments.**
I replicated the problem:
1. I create a ticket with 3 attachments
2. After submission, only 2 attachments are visible.
3. In the ost_file table, the 3 files are present.
4. In the ost_attachment table, file with id 107 is not there and id 108 is duplicated : :.