Implement NC file symlinking (database [maybe filesystem] based) #28178
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
enhancement
Nice to have
Please consider providing a file [sym]linking API to modules and support it in file manager.
Problem
It is not currently possible to categorise or share one file in multiple places, with different sharing properties and having separate attributes (chat, comments, ...). Since NC doesn't deduplicate files if they need to be copied multiple times the result is very inefficient: the data is duplicated N-times.
Same problem is present with various plugins, especially image-sharing or gallery plugins: it is not possible to efficiently create mutiple galleries, shared albums with the same images but with different (sharing or else) attributes. (Similar to what Google Photos do.)
Plugins would need to separately and redundantly implement their own symlinking code, it is much better if it was provided as a central feature.
Suggestion
NextCloud core should provide symlinking, or creating virtual files which point to the same physical data without actual data duplication. This need not to use real filesystem symlinks, a simple database structure can do it.
Apps could use this feature to create subdirectories and link specific files into them and configure their sharing and other attributes separately, implementing various group sharing features (shared albums, shared group files, etc).
Required internals
The text was updated successfully, but these errors were encountered: