Hello,
I would like to enable multiple document upload in forums.
I can see that the way SPIP handles document uploads in forums is that it stores the the document in the session, and when the forum post is inserted into the database, this document is associated with the forum post.
For multiple documents upload, I start with changing the form type to multipart:
<form ... enctype="multipart/form-data" ...>
But after, the modifications because of the document being stored in the session seem quite hard.
I can loop through the uploaded document. Is there a way to add the documents securely to the forum post created directly in the traiter function?
Thank you.