nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.18k stars 4.04k forks source link

Single File with Multiple Paths #2928

Closed kmcb closed 4 years ago

kmcb commented 7 years ago
I was entering this request to tie to the discussion on the forum. This feature request is to add the capability to have a single file have multiple paths so it would appear in multiple folders. https://help.nextcloud.com/t/single-file-with-multiple-paths/6403/4 This shows some information on using this feature on Google Drives. https://www.labnol.org/internet/add-files-multiple-drive-folders/28715/ After doing some investigation, some of the logic appears to have been implemented already Biggest Benefits: - Improve New User Experience in a many file shared repo, by allowing users not familiar with file structure to take hierarchal drill down approach to find the same file. - Saves Spacing for Mobile applications - Changes to the file would not require being individual updates to each different path. Downside: - Maybe it is a limited use case ;) Simple Example- (in practice, the same file may exist in 40-60 paths for my particular use case) Main Directory -----Applications ----------- Fire Trucks ----------------*File: Fire Truck and Crane Chains -----------Cranes ----------------*File: Sprocket for Cranes ----------------*File: Fire Truck and Crane Chains -----Manufactures ----------- Jim’s Sprockets ----------------Catalogs ----------------Brochures ----------------------*File: Sprocket for Cranes ----------------Pricing ----------- FMP Chain ----------------Catalogs ----------------------*File: Fire Truck and Crane Chains ----------------Brochures ----------------Video Demos ----Product Type ----------- Chain ----------------*File: Fire Truck and Crane Chains ----------- Sprockets ----------------*File: Sprocket for Cranes
MorrisJobke commented 7 years ago

This is basically symlinking. I don't know if we want to build this into Nextcloud it could get very easy super complex.

cc @karlitschek @icewind1991 @rullzer

karlitschek commented 7 years ago

Interesting idea. But this is a lot of work because we have to consider all the corner cases. Also the User Experience needs to be completely seamless.

kmcb commented 7 years ago

Does it reduce the complexity by offer this feature for people viewing the directory via web browser and using the IOS/Android Apps only? Would that give you a good first step?

MorrisJobke commented 7 years ago

Does it reduce the complexity by offer this feature for people viewing the directory via web browser and using the IOS/Android Apps only? Would that give you a good first step?

No. Everywhere we use WebDAV as API.

kmcb commented 7 years ago

It looks like WebDAV has a draft that covers this. https://datatracker.ietf.org/doc/draft-ietf-webdav-collection-protocol/

putt1ck commented 7 years ago

+1 for this feature. Not an edge case in organisations, it's about document ownership versus document need. So for example:

finance/admin department maintain policies, keep insurance certificates up to date etc.; they want to do this in an area or areas(group folder(s)) controlled by them, with read access more widely to some parts of their area, and will maintain a file structure that works best for them as a function.

Sales department needs to include some of these documents in tenders, and wants to have easy access to them to maintain efficient working, and in their group folder have a "resources" folder that contains the documents they need, some of which will be from finance/admin, some from health and safety, some from HR and some they maintain themselves - that folder should contain shortcuts to the maintained document, rather than: copies of the documents of interest (version control issues and/or overhead); a document with a list of where to find such documents (clumsy, hard to maintain/use, probably leads to copies).

It occurs to me that the shortcut approach could just be about supporting URLs like the External Sites app, where the URL could be restricted to the NC server domain and possibly include domains of trusted NC servers.

I'm not sure whether/how the URL shortcut approach would be supported in webdav or the sync client - but that's true of the features in other apps, so it doesn't have to be seen as a showstopper.

kmcb commented 7 years ago

@putt1ck I am probably biased ;), but well said.

Another use case, based on what you wrote, is quality management systems (IE ISO 9001). Large organizations have many work instructions. This could be use to maintain control in the quality organization, but organize the pertinent documents for specific job functions/departments

radoeka commented 6 years ago

What about a virtual folder? Tag the file 'Fire Truck and Crane Chains' with tags:

Applications/Fire Trucks Applications/Cranes Manufactures/FMP Chain/Catalogs Product Type/Chain

Display the files based on their tag. Wouldn't this work?

kmcb commented 6 years ago

@radoeka the main reason was new user navigation. A new user would need to understand the tags system and tags to find the information. If there is a hierarchy, a new user can browse and drill down for the information.

radoeka commented 6 years ago

@kmcb: depends how the tags are presented. When they're presented in a hierarchal structure it's the same as your proposal. But instead of using the data on the file system (filenames), data from a database (tags linked to the file) are used.

The tag presentation system should support a hierarchy, as you can see I used the same hierarchy as what you displayed in the filesystem: Applications/Fire Trucks Applications/Cranes Manufactures/FMP Chain/Catalogs Product Type/Chain

When this is displayed as: Applications ...Fire Trucks Applications ...Cranes Manufactures ...FMP Chain ...Catalogs Product Type ...Chain

You get what you wanted, and very flexible ;)

kmcb commented 6 years ago

@radoeka, I would agree that would get us pretty far along the path. Can NC support that type of presentation or would that require a separate app?

radoeka commented 6 years ago

@kmcb: have a look at the bookmarks app. This app provides 1 layer tags. I think that a new app is needed for this (owncloud may have one: systemtags_management )

radoeka commented 6 years ago

https://help.nextcloud.com/t/possibility-of-a-hierarchical-structure-for-tags/4509/5

harveyc5 commented 5 years ago

Has there been an update on this feature? As is in google drive - it would be very useful. @kmcb

loeffelpan commented 5 years ago

+1

Would be very appreciated to implement this.

robin-thoni commented 5 years ago

Another use case is as follow:

data1/...
data2/...
devices/laptop-1/
devices/phone-1/

I have data folders and one folder per device. I use those folders to control what each device syncs, cause I don't need all data everywhere. With this feature, I can "symlink" all the data I want to sync per-device, like:

data1/somedata/...
data1/someotherdata/...
data1/...
data2/...
devices/laptop-1/data1/somedata -> /data1/somedata/
devices/phone-1/data1/someotherdata -> /data1/someotherdata/

As opposed to uncheck folders in the client, this allows to remotely select which folders must be synced on which device, before even connecting the client, if needed.

ghost commented 4 years ago

Yeah this would be a nice feauture +1

Schmiggolas commented 4 years ago

I'm also looking for exactly that feature. I have a lot of books stored as pdf files in a 'books' directory on my nextcloud. But I also have a directory for all my university related stuff like assignments and papers where I normally just create a shortcut to the respective files in the 'books' directory. Like that:

books/topicX/bookA.pdf
books/topicY/bookB.pdf

uni/assignment/shortcutToBookA.lnk
uni/assignment/shortcutToBookB.lnk

however those links only work on one machine and not when syncing to another one since Windows shortcuts are absolute. (they also do not work on the server obviously). Just uploading the files twice is no option since some of those books are 100+MB in size. Directly linking to a nextcloud link is also not really great since I already have them on my machine.

I would really appreciate this feature or at least a workaround to relatively link to files on my own machine. (I guess the latter is more a Windows thing than a nextcloud one tho)

ostasevych commented 4 years ago

As a workaround you may try to use Link editor app. I suppose to re-use it and add symlinks to NC. Let me add, Google Drive has added shortcuts feature.

skjnldsv commented 4 years ago

@MorrisJobke @rullzer do we want this? Is this even doable?

MorrisJobke commented 4 years ago

@MorrisJobke @rullzer do we want this? Is this even doable?

Most likely we don't want this. There should also be other symlink like feature requests.

ghost commented 4 years ago

@skjnldsv @MorrisJobke @rullzer I think it is a mistake to ignore/shutdown user feedback like that, and although I apreciate your work and probably that your are thinking if I want it that much I should make a PR, a lot of people seem to want such feature implemented, given the triviality of it (sugestion implementing the GNU ln package in a GUI) I dont think this report should be closed.

skjnldsv commented 4 years ago

@sk-alexis Hey! :) This is unfortunately a decision that have to be made. I understand your concerns and to be honest there are other features that I find great, but we also have to think globally and about maintenance. Such feature is far too much work and if the demand is that low, it's not worth taking us much more time to implement and in the end, having people complaining because we don't have time to maintain or bugfix.

I'd rather have features that 100% works and are really used by lots of people than corner-edge features that aren't fully polished and create more bugs/tickets than we can handle :confused: Hope you can understand, this is not ideal, but a necessary evil. Maybe in a few years we'll have more maintainers that we allows us to handle such thing. And maybe we'll then have a different demand for it. But in the meantime it's just clutters the issues list (and can still be re-opened if one day it happens :wink:)

Cheers! Enjoy the weekend! :hugs:

kmcb commented 4 years ago

@skjnldsv @MorrisJobke @rullzer @sk-alexis As the original creator of the request, I appreciate the consideration and feedback the community has added over the last number of years.

Let's hope Nextcloud continues to grow.

Thanks and have a good weekend

fredjoz commented 1 month ago

Hi, +1 for this request. Very usefull fonctionnality. With the opensource app GoFAST (https://www.ceo-vision.com/) you can share one doc in multiple directories without duplicate it. A very simple way to manage versions and publications. Many thanks in advance if it could be implemented one day.