ialexpw I'm looking to use this to upload photos/videos but also other misc files that I can share with people that I know (multiple different people). It would be handy to be able to generate a "share link" where the user can go to to either instantly download the file or have a "Download file" button to trigger it.
It's interesting of course, but if I may ask: Why do you need a special "share" link if you already have a link to share
?path/to/folder/to/share? Is it because you want the gallery to by private (login) by default, but then you want to share some folders public (without login)?
ialexpw When using other storage/photo hosting applications (Nextcloud, Google photos, Onedrive etc) you can generate this which would be easier than having to create user accounts and then saying "Go here, sign in with these credentials, then download those files".
Yes, those apps are more powerful than Files gallery of course, mostly because they are database-driven and organize files into their own structure. Files gallery is a single file, independent from database, that reflects your existing folder structure, and allows you to edit the structure by your own means (FTP, SSH, desktop file manager etc). This causes some restrictions as to what we can achieve with Files gallery, because it does not technically "control" your files (like other apps). Folders are physical (unlike categorized by database), and cache is tied in with folder paths. To create virtual url's for example, we would need to store "hashes" somewhere, which then point to actual physical paths ... Even if the link "expires" at some point, if the user logged where the files were loaded from (browser dev tools), they could still access these files, unless you add
.htaccess protection ... Just to mention some the layers of precautions that managed applications already have built-in, because they control all your files.
It would definitely be interesting to consider features like this for a future release, but currently it's limited because of the passive nature of Files gallery. Thanks for contributing with feedback!