When sharing a file by link it maybe is useful to add the filename to the link itself. Just to better identify what is behind this link. I think it doesn't even need to have an impact on the actual sharing, but should just help to identify the content if you only have the links.
Something like
@nextcloud/designers @nextcloud/sharing What do you think?
Just the file ending in case the file name is very long (it would make a long link name).
Just the file ending in case the file name is very long (it would make a long link name).
We could also ellipsize: https://cloud.example.org/s/lc3cANiTLMXfgzo#this-is-a-long-file....docx
We could also ellipsize: https://cloud.example.org/s/lc3cANiTLMXfgzo#this-is-a-long-file....docx
And of course replace all non-native URL characters with nothing and spaces with dashes.
@MorrisJobke Yes, that's an option indeed.
I'd personally prefer using /
instead of the #
symbol: (while making the filename optional)
https://cloud.example.org/s/qyMiz3koTqYIQoS/nextcloud-12.zip
https://cloud.example.org/s/qyMiz3koTqYIQoS/download/nextcloud-12.zip
wget
by using the direct download link:#
wget
or curl
may correctly interpret the appending filename, because it's part of the URLAgree with @MorrisJobke and @patschi – adding the filename is good, but it should always be optional. That is, links without it shouldn’t break, or when the file is renamed.
Agree with @MorrisJobke and @patschi – adding the filename is good, but it should always be optional. That is, links without it shouldn’t break, or when the file is renamed.
Correct. And using the anchor this will not have any effect. For the /
version we need to setup the routes properly
Sure..
I'd go for the anchor. As indeed lets not fuck with the routes. Also we already set the content disposition header. Using
'Simplest' would be I guess to extend the shareAPI. Right now there is the URL attribute there. Just adding it there would work. Altough it would then force everybody to use it.
And much easier to implement! ^^
Is it a real problem we are trying to solve here? I'm not against it in general. But I fear that once we show the filename people will complain that the link contain the old file name after renaming the file.
Just want to avoid to creating more problems, user wishes and complexity in the long run without a need.
For sharing reasons, links should be as short as possible 🤔 It should make no difference what is behind the anchor# ... after a filename has changed, the anchor should be changed too 😉
The problem we’re trying to solve is having the link be a bit more transparent as to what hides behind it.
A certain competitor called Dropbox also does that, and it’s a nice thoughtful enhancement.
Just a copy from #6463
Make links to image/file preview portable between tabs or users.
http://example.com/index.php/apps/files/?dir=/test&fileid=100#/test/Layout.png
Image preview opens.
File listing opens.
Let's make everyone happy?
https://cloud.example.org/s/lc3cANiTLMXfgzo#/this/is/a/file.doc
:D
@skjnldsv just fix it! :wink:
So, after a year, is there any way to make direct download links that will save to either source file name or some other file name? Or we have to look for alternatives?
Most likely nothing for 14 -> moving to 15.
Hello,
Regarding this debate, I think this app is very interesting: https://github.com/LazyShpee/sharerenamer
This is an add-in to the Files app, which allows you to customize your share tokens, so your links can be https://cloud.ex/s/bachelorparty instead of https://cloud.ex/s/qPv1SwbU5M2YEoJZ. Just share a file or folder (or click an already shared one) and a new button will appear below the share link URL in the sidebar of the Files app.
I like this approach. @LazyShpee do you plan to make a version for NC14?
FYI, and thanks to Alfred in https://help.nextcloud.com/t/nextcloud-url-shortener/10855/7, I found this wonderful app, available under Tools in the Nextcloud app store: https://apps.nextcloud.com/apps/sharerenamer and https://github.com/DecaTec/sharerenamer
@biva that is indeed nice, but a different topic. :)
Any update about this feature ?
@Papyruse if there’s any updates on any issue, the issues will be updated. :) Currently no one is working on it and anyone is welcome to pick this up.
Most helpful comment
I'd personally prefer using
/
instead of the#
symbol: (while making the filename optional)https://cloud.example.org/s/qyMiz3koTqYIQoS/nextcloud-12.zip
https://cloud.example.org/s/qyMiz3koTqYIQoS/download/nextcloud-12.zip
wget
by using the direct download link:#
wget
orcurl
may correctly interpret the appending filename, because it's part of the URL