When creating share links with NextCloud 13.0.2 - by default - the link looks like this: https://cloud.chillstice.com/s/KGKW6FbYzGQDYy3
(test file)
/preview can be added to the end of the url to make the file display in a basic form. Just the file, no extra elements.
However, is there a way to change the share link behavior so that by default it links directly to the file with the file extension? For sharing pictures via url online, this makes the url appear to be more trustworthy and gives an impression of what the url will link to before it is clicked. Also, some services parse the url, determine what it links to, and create previews. Some of these services expect a file extension in the url.
For example: https://cloud.chillstice.com/s/KGKW6FbYzGQDYy3.png
Also, is there a way to use a concatenated version of the file name as the share link identifier?
For example: https://cloud.chillstice.com/s/filename.png
This seems like the most optimal way to handle share link urls for my application.
Which services are relaying on the extension? I like to understand what they are tryinâ do reach.
As soon as the service fetches the file it can detect file type by mime or other common ways.
For example a playlist for mp3 files, which is unfortunately not possible at the moment. But this would be a nice feature for mp3 streaming out of nextcloud.
Create an empty text file, name it playlist.m3u8 and fill it with data (or generate the playlist with Winamp):
I believe the naming is to help obfuscate files links as a general rule, but you can submit a feature request to the Nextcloud Server github here. My suggestion followsâŠ
If you have admin access to your account you can install the app Share Renamer, which is sadly not listed in the Nextcloud App store. Login to your server and navigate to the apps directory to install from Github.
So I am having a similar issue where I tried your suggestion âjustâ with the mystery box and that didnât work, since I was trying to add an HTML5 audio tab to stream to a website. Are there any other suggestions on how to do this via Nextcloud? Can the â/downloadâ link be turned into a preview or streaming link for HTML5? Iâd appreciate any pointers definitely a newb here.