gather-community / gather

The App for Community
https://info.gather.coop
MIT License
30 stars 6 forks source link

Wiki file attachments #109

Open smoyte opened 5 years ago

smoyte commented 5 years ago

Wiki Attachments in Gather

Purpose

Be able to attach images, documents, or any file to a wiki page.

User Experience

An attached file can be referred to by placing a specially formatted link in the wiki page. If the file is an image, it will also be possible to place a link in the page that will display the image in-line.

We will provide one or both of the following ways to attach a file to a document. In either case, edit permissions will be required.

  1. Next to the Edit button there will be an Attachments button. Clicking on this will take the user to a screen where they can see the existing attachments, remove them, and upload new ones.

  2. When editing a page, there will be an Attach File button, which will allow uploading a file and, optionally, inserting the markup to create a link to the file or, if the file is an image, insert it into the page.

Implementation

The system will be based on Active Storage, a new feature in Rails 5.2. Thus, we will need to move to 5.2 for this project.

Active Storage supports both local and cloud file stores. For development purposes, we will use a local file store. We will decide later what to use in production.

References to attached documents will use a wiki markup that is based on the Markdown syntax for links and for in-line images.

Originally created by Steve Gaarder at 2018-11-28 16:57, last assigned to Steve Gaarder, migrated from redmine-#9155

smoyte commented 5 years ago

By Steve Gaarder at 2018-11-28 21:57