ihexxa / quickshare

Quick and simple file sharing between different devices, built with Go, React and Typescript.
https://ihexxa.github.io/quickshare.site
GNU Lesser General Public License v3.0
504 stars 32 forks source link

Soft link support #110

Open matteocedroni opened 2 years ago

matteocedroni commented 2 years ago

Hi, a soft link to file in Quickshare user's directory appears in browser list as file and correctly downloaded. Unfortunately, a soft link to directory appears as file too.

One of the feature that makes Quickshare interesting is that it can be managed from OS. I am aware that it is not the primary purpose of the project, but (in self hosted scenario) complete softlink support can be useful to share content already present elsewhere on disk.

My current use case is to share content to some visitors that can only download and i would like to use Quickshare instead of a classic file server App.

Thanks for this project :)

ihexxa commented 2 years ago

Hi @matteocedroni, The use case makes sense to me, sharing links to elsewhere on disk is more natural than copying/moving files around.

To avoid introducing vulnerabilities, currently one normal user is only able to manage/share sub directories and files under single directory (from Quickshare). We need to extend this model for supporting soft link. I will take a look and evaluate it.

Currently Quickshare creates a root directory and exposes it to users. And I'm thinking about another feature: "power" users should be able to add multiple directories to Quickshare. This may partly satisfies your requirement.

Thanks for the feedback!