seasketch / next

A modernization version of the SeaSketch platform, released in 2022.
https://seasketch.org
BSD 3-Clause "New" or "Revised" License
7 stars 0 forks source link

Attaching documents to forum posts #609

Closed wmcclin closed 1 year ago

wmcclin commented 1 year ago

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.

underbluewaters commented 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.

UI Side

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:

Server and Database Support

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.

underbluewaters commented 1 year ago

Other tasks