BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.45k stars 1.94k forks source link

Nextcloud storage for attachments #5290

Open 0x4E4448 opened 1 month ago

0x4E4448 commented 1 month ago

Describe the feature you'd like

Allow replacing or complementing the existing file attachment feature with the ability to integrate with Nextcloud for file storage. Allow a Nextcloud storage location to be designated on a page-by-page basis and then any files uploaded in that Bookstack page would be uploaded to the Nextcloud instance. A direct link to that storage location should be added to the page once a Nextcloud storage location is specified. A similar feature is available on OpenProject to tie project documents to a Nextcloud storage location.

An optimal solution would provide a file listing above the comment section so files could be accessed directly from Bookstack.

Describe the benefits this would bring to existing BookStack users

I believe this would improve the file storage abilities by giving a centralized location for files, of which Nextcloud is commonly used, without duplicating files. Sometimes it is beneficial to attach the same file to multiple pages (PDFs, for example), and being able to attach a single storage location would reduce unnecessary duplication of the files. Depending on the implementation result, it could also allow a direct link in a Bookstack page to a specific document in the Nextcloud storage location.

Can the goal of this request already be achieved via other means?

Attachments are already permitted, but file management is virtually non-existant. It is not possible to select files from other pages to also be attached to your current page without simply returning to the original page and copying the link. Deleting the page invalidates any links from other pages as the attachments are tied to that original page. Multiple attachments simply adds additional links to files.

Have you searched for an existing open/closed issue?

How long have you been using BookStack?

3 months to 1 year

Additional context

My use case is for client notes. A book for a client, a section for a project, and pages for meeting notes or random work on the project. Sometimes I attach files for context, either contracts, device configurations, etc. This is all data I already keep in Nextcloud. It makes sense to be able to attach a Nextcloud storage location to a page to either directly list the files in Bookstack or upload more or to be able to click a link and go directly to the storage location in Nextcloud. Direct access from within Bookstack would give a more seamless experience.