osTicket (v1.18.2)
Ubuntu 22.04.5 LTS
Files are saved to File System

Hi

Sure it must be a simple fix, but i have searched through previous questions and looked through all settings and can't seem to fix.

i am an administrator with hopefully full access permissions to everything.

if i send an email in an inbox with an attachment, the ticket gets created correctly.

sometimes i may want to delete some or all of the attachments, but i cant find the option to delete the attached file.

Some community posts suggest there should be an option to delete the attachment

please help

thanks

  • KevinTheJedi replied to this.
  • gpm1976 likes this.
  • gpm1976

    There is no option to selectively delete attachments. What you were reading is most likely talking about the system's automatic file cleanup. Anyways, in order to delete an attachment you must delete the object it's associated with. In this scenario since it's attached to a Ticket you must delete the Ticket. Once deleted the file will be "orphaned" so long as it's not associated with anything else. In osTicket we deduplicate attachments so if you upload an attachment and then later upload that same attachment we don't upload the data twice. We simply create a new attachment record that references the existing file data. So if the attachment is on Ticket A and Ticket B but you only delete Ticket A then the file will remain in the database/filesystem. With that out of the way, once a file is orphaned it will be cleaned (deleted) by the system's automatic file cleanup after 24-48 hours.

    With this being said, we are planning on adding attachment management after v2.0 has been established so stay tuned!

    Cheers.

    gpm1976

    There is no option to selectively delete attachments. What you were reading is most likely talking about the system's automatic file cleanup. Anyways, in order to delete an attachment you must delete the object it's associated with. In this scenario since it's attached to a Ticket you must delete the Ticket. Once deleted the file will be "orphaned" so long as it's not associated with anything else. In osTicket we deduplicate attachments so if you upload an attachment and then later upload that same attachment we don't upload the data twice. We simply create a new attachment record that references the existing file data. So if the attachment is on Ticket A and Ticket B but you only delete Ticket A then the file will remain in the database/filesystem. With that out of the way, once a file is orphaned it will be cleaned (deleted) by the system's automatic file cleanup after 24-48 hours.

    With this being said, we are planning on adding attachment management after v2.0 has been established so stay tuned!

    Cheers.

    Write a Reply...