Closed wmcclin closed 1 year ago
This could be sort of a big ticket. There are two sides to this work, the upload handling infrastructure and UI pieces.
Prosemirror message documents in the forum support Map Bookmarks via attachments, which are designed to support things like File Uploads as well. More details on attachments can be found in the schema. The basic steps to getting uploads working in forum posts would be:
I'd like to take this opportunity to create a more generic FileUpload table that can be repurposed for other use cases, such as surveys. Like with map_bookmarks, there needs to be some fairly complex introspection of the post prosemirror document to assign the correct post_id to these FileUpload records.
Other tasks
The Maldives (Noo Raajje) project will begin consultations in mid-July through August in which they would like gather data from fishers and councils. Some of the information may come in the form of documents. They'd like to be able attach these documents to a forum post.