Public Ticket View - No File List

I am currently setting up the tickets module. In our usecase, we need to be able to share files between internal users and “public users”. An example would be:

  1. public user opens ticket with an image attached
  2. staff member reads the ticket
  3. staff member answers with an attached PDF file
  4. public user gets email notification
  5. public user logs in to public ticket interface
  6. public user downloads manual file
  7. public user closes the ticket

While both internal users and “public users” can attach files to messages, only internal users can see them.

I did not see an option in the module setup to expose files to the public interface. Is that possible somehow?

This does not seem to be possible. Every uploaded document for every ticket seems to be only accessible as a logged in User.

I tried to add the document list to the public view (htdocs/public/ticket/view.php)

require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
$formfile = new FormFile($db);
$filename = dol_sanitizeFileName($object->dao->ref);
$upload_dir = $conf->ticket->dir_output;
$filedir = $upload_dir."/".dol_sanitizeFileName($object->dao->ref);
$urlsource = $_SERVER["PHP_SELF"]."?id=".$object->dao->id;
$genallowed = false;
$delallowed = false;
$codelang = '';
print $formfile->showdocuments('ticket', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->dao->model_pdf, 1, 0, 0, 28, 0, '', 0, '', $codelang);

this prints the document list on the public ticket page, but when you click on them, you only open a new tab with the loginpage to the “internal system”.

The usecase from my previous post seems to be standard though. And every ticket system I previously worked with, that allows non registered users to upload files in the tickets also allows them to see/download them.
It is weird that dolibarr allows the upload, but then users cant even see the file they just uploaded in the message history. The feedback a user gets is basically “We got your message, but we didnt get your file” That will inevitably cause confusion with our customers.

I totally might have overlooked something though. If so please point me in the right direction.