Public ticket: no linked files for uploaded attachment

Dolibarr version: 10.0.4 and 12.0.0-alpha
Module: Tickets
URL: htdocs/public/ticket/create_ticket.php

When creating a new ticket form public interface, attachments are uploaded but not linked to the ticket.

How to reproduce
  1. Go the the public ticket creation page and fill the form
  2. Choose file… (button)
  3. Attach this file (button)
    3.1. File(s) uploaded successfully to documents/ticket/temp/
  4. New Ticket (button)
    4.1. A new ticket has been created with ID c4bgxcgr9kj39y5b and Ref TS1911-0010. File moved from documents/ticket/temp/ to documents/ticket/c4bgxcgr9kj39y5b/. Reference to file present in database.
  5. Access the ticket as member. Attachment is not listed within the linked files.

If a message with a new attachment is added to the ticket (from public ticket interface), the file is uploaded to documents/users/0/temp/, then moved to the ticket directory (ex. documents/ticket/TS1911-0010/) and listed as linked file.

When created a new ticket from the admin interface, attachments are uploaded and linked correctly.

Can anyone confirm having the same issue? I think it is a bug but didn’t want to waste developers time submitting it to dolibarr’s github issues in case it isn’t.

Hello,
I can reproduce the same issue in 11.0.1 version.

The ticket attachment is saved in a folder with the public tracking id number name

documents/ticket/s45qfxlterh2hcv/attach.txt

Like workaround…
You can move the file to one diretory with ticket referemce name,

documents/ticket/TS2002-0157/attach.txt

the attachment is correctly linked to the right menu.

Any solution?
Thanks

Thanks for answering. Issue created:

Please am running on version 11.0.4 and we can’t create tickets from the public link: It keeps saying Email Error: Email can not be found on our database. The customer/vendor email address is already in the system. Please any tip to resolve this will be appreciated.