-
-
Notifications
You must be signed in to change notification settings - Fork 3
Fetch and set default file name + extension automatically #5
Comments
Hello! 👋 As of v0.2.0 which I released a few hours ago, the file name will default to the remote name if you leave the text box blank. As for defaulting the file extension, I could split the file name input so that a new name can be entered while automatically keeping the original extension? |
I accidentally added `autofocus` to the file name input too, causing them both to request focus. #5 (comment)
Hi danth ! Thank you very much for these changes ! For example if I try to download my Github avatar (https://avatars.githubusercontent.com/u/6570830?s=80&v=4), the downloaded file won't open as the extension is not fetched and included automatically. |
+1 for the file extensions |
I will look into better handling of file extensions this weekend. There are three cases that we need to support:
We also need to be careful not to split out bogus extensions from links which just happen to contain a dot. I would like to present the dialog as follows: In the second two cases, the extension can't be known until the transfer has started (unless a user inputs it manually). How would be best to present the idea that "file extension is unknown, but will be determined during download"? Just a line of text underneath the input? We could also try sending a |
The line of text and HEAD request both seems to be a great idea! I wonder in absolute in which cases the user should specify manualy the file extension. I wonder if there are specific cases where the user would better know the filetype than the machine. Also if the user sets the wrong extension, the file might not be usable from within NC. All in all there might be consequences I don't fully understand but I think the extension field could maybe even be removed, thus further simplifying the interface in the process of making it straightforward and as automatic as possible for the end-user ? :) |
In the following GitHub link: Perhaps we should mitigate this by always using the content type reported in the headers rather than guessing based on the URL.
If we always use the reported content type, then there will be no cases where we know the extension before starting the job. In that case I think the best option would be to remove the input box completely. The file extension can always be changed afterwards by renaming, in the rare case that the mime type is reported incorrectly by the remote. However if there is no extension field, it should be made clear that the user does not need to type one. On the other hand, there are some file types for which there is a choice between extensions. For example, |
I fully agree for the content type! Regarding your specific link however, your program appears to work correctly as if the user wants the Regarding the choice between extensions Making the app as simple and straightforward as possible could be nice as I used to love the download feature back when it was included inside ownCloud's core in 2015 ! :)
|
This implements the user interface changes required for #5.
Description
Hi @danth ! :)
First and foremost, let me thank you a lot for coding and publishing this extension!
I've been missing this feature since the time it was inside ownCloud or something like that - and got removed for security reasons (if I am not mistaken). I missed it to the point of creating a "junk" folder on my desktop, specifically for situations like these when you have to use your computer first to download a file, then drag and drop it.
Of course NC Downloader app allows to download files over Https, however it requires a lot more interactions and is way less straightforward than your great app! So I really wanted to thank you for this !! :)
Back to our topic, I was wondering if your app could only ask for the link to download and fetch/set the file name (and extension) automatically acccording to its remote name ?
That would reduce even further the interactions needed to get a remote file downloaded straight away.
Then you could maybe create an app settings section and add an option in it to let the user define the file name before downloading it ?
Furthermore, when I download a picture and type a name without the extension, the file cannot be open from within Nextcloud Files:

Use case
Make the app even faster and easier to use.
The text was updated successfully, but these errors were encountered: