Deck: Nextcloud Files integration

Created on 1 Aug 2018  Â·  17Comments  Â·  Source: nextcloud/deck

Would be nice if I could not only upload new files as attachment but also select files which are already stored in my Nextcloud to connect then with a specific card.

Updated specification:

  • The user is able to upload a file as an attachment to a card.
  • Files uploaded from local storage will be stored in a default folder, pre-defined by the user.
  • The uploaded file will be shared with all users who have access to the board.
  • If the owner of the uploaded file deletes it, it will be removed from the board and from all users storage.
  • The user is able to select an already existing file from Nextcloud Files and attach it to a card.

Mockups

Being able to attach files to a card, either by choosing an existing file from the Nextcloud files app or by uploading a new one.

image
The sidebar of a card will have an "Attachments" tab which will enable the user to upload files from the local storage and attach it to a card or to attach a file which was already uploaded to Nextcloud

image
A file picker will enable the user to attach a file which already exists in Nextcloud, to a card

image
The user will be able to jump to the file directly ("Show in files")

1. to develop enhancement attachments

Most helpful comment

Yes, our plan is to do this like it is implemented in talk. I've updated the first post with our spec that was defined during the last contributor week.

All 17 comments

Yes, definitely. There are some things that need to be discussed. It doesn't seem to be easily possible with the current share API the server provides, therefore i opened https://github.com/nextcloud/server/issues/10292.

  • Files should somehow be accessible by all users who have access to the board

    • Should they just show up in the home directory or in a deck specific subfolder

  • Files need to be editable by all users who have write access to the board

    • How would editing with collabora/other apps be achieved?

  • In case there is public board sharing (#14), how is the file being made accessible to guest users

True, didn't thought about shared boards. Maybe you could use the existing share api to automatically share the file/folder with all users to who the board is shared.

Started using deck a couple of days ago, and this feature is definitely useful. Hoping to see this feature! :)

yeah – should be possible. We want to use it in our team instead of trello, but this feature is missing. yes we know, we can go to the file and copy the share link but it's not pretty elegant. Is it possible to show this window of copy the link to share it?
i would help but haven't any skills in programming with API's :(

Is that feature still planned? I just got stuck with that as well in NC18.
Other apps like mail are supporting it. Would make it the activity cards approach more complete, as at least in our case quite often a document or concept is one of the results of such acitivities. So an easy reference of it would be great.

talk-nexcloud-files

the nextcloud talk app supports it too. Maybe there are some revelations the get from looking into their coding approach.

Yes, our plan is to do this like it is implemented in talk. I've updated the first post with our spec that was defined during the last contributor week.

Yes, our plan is to do this like it is implemented in talk. I've updated the first post with our spec that was defined during the last contributor week.

One thing that is missing, is the question if already existing files:
1) will only be able to be seen by the users that the file is shared by nextcloud itself
2) the file permission is changed such that each participant of the board has e.g. read access
3) the file is additionally moved to the hidden folder and users that have no direct access to the file can view it from there (-> maybe bad solution as the file has to be kept in sync with the "original" file)
4) promt to decide between e.g. 1) & 2) of the above solutions during linking process. Then also some visual clarification should be available to identify a file as e.g. "public to board" on first sight

I would strongly recommend 1 & 2 as options, with 1 as default and where 2 is implemented like the "share link" function - and equally respects advanced permissions in group folders i.e. will tell the person trying to share via a deck attachment that they do not have permission to share the file.

I would like having a config option in a board, whether its attachments should follow policy 1 (current file permissions) or 2 (shared with the board), being 1 the default, as most restrictive. This could be then changed on a file basis. Perhaps simply implemented as a yes/no tick "share with the board" for the file owner.

I think a file owner can already set permissions. But many files in an organisation will be shared to users without them being granted permission to reshare, and Deck cannot be allowed to override that permission or it breaks the security model.

How different is this from the current feature where I can link the selected card to another card, board or file from the details pane? Referred to as "projects".

Quite different, because a project creates a nextcloud-wide project entry that apps can access. Assuming that would be the case for more than a few cards, the project search would become a total mass very quickly.

The project link is a solid workaround though before this is implemented. If you don't want to screw up your project search you can also attach the internal link to a file in the description.

A first iteration of this feature that might be much easier to implement is to add a "nextcloud file import" option. So the file will still be duplicated when added to the card, but at least I don't have to download the file from nextcloud to my filesystem and then upload it again to the card. Saves bandwidth, time and it is more convenient.

@jancborchardt @Clementine46 I've also created two very quick mockups of how the sharing part could look like from the files app. As discussed we have two options here, from my point of view the last one makes most sense as otherwise users will end up with their sharing auto complete being filled with tons of cards.

Option 1: Show results of cards to share with immediately in the sharing input

image

Option 2: Only show one entry and let the user pick the card to share with in a modal

image
image

From our design call:

  • Rename actions to Upload new files / Share from Files as in talk
Was this page helpful?
0 / 5 - 0 ratings

Related issues

jbonlinea picture jbonlinea  Â·  4Comments

fkaup picture fkaup  Â·  4Comments

scoopex picture scoopex  Â·  4Comments

RobertZenz picture RobertZenz  Â·  4Comments

PanCakeConnaisseur picture PanCakeConnaisseur  Â·  4Comments