Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to a direct download link to a file #14593

Closed
sebastianschauenburg opened this issue Mar 7, 2019 · 19 comments
Closed

Ability to a direct download link to a file #14593

sebastianschauenburg opened this issue Mar 7, 2019 · 19 comments
Labels
1. to develop Accepted and waiting to be taken care of enhancement

Comments

@sebastianschauenburg
Copy link

Is your feature request related to a problem? Please describe.
Currently when I copy the "direct link" to a file and send it to someone (who of course has a valid account and is logged into the same Nextcloud instance) and they click on it, it opens the web interface in the directory where the file resides. Then I still have to explain to them which file I meant and that they need to download it. (Usually I would've expected a direct link to a file (instead of to a directory) to generate a download link for that file.)

Describe the solution you'd like
It would be fine if there would be a "copy direct download link" feature. This is quite useful when I want to integrate Nextcloud with a wiki or within documents, where links to specific Nextcloud documents are put (for example).

@sebastianschauenburg sebastianschauenburg added 0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement labels Mar 7, 2019
@skjnldsv
Copy link
Member

skjnldsv commented Jun 4, 2019

You can append /download at the end.
https://xxxxx/s/niKCpgZ4kWFefJM ➡️ https://xxxxx/s/niKCpgZ4kWFefJM/download

@skjnldsv skjnldsv closed this as completed Jun 4, 2019
@sebastianschauenburg
Copy link
Author

sebastianschauenburg commented Jun 5, 2019

@skjnldsv I believe this issue was wrongfully closed (see below for details)

Using the browser I went to the details of a file and clicked "Copy direct link".
A URL like the following is generated: https://nextcloud.my.domain/index.php/f/231641
Visiting that URL you'll end up in details pane of that document.

Suffixing it with /download would result in a URL such as: https://nextcloud.my.domain/index.php/f/231641/download.
Visiting that URL you'll end up in the directory the file is in and not download it.

Tested with Nextcloud 15.0.8 and 15.0.7 on 2 separate installations.

@szaimen
Copy link
Contributor

szaimen commented Jun 5, 2019

Please reopen because it doesn't work!

@skjnldsv
Copy link
Member

skjnldsv commented Jun 5, 2019

Hey!

Sorry, I might have misunderstood :)
You're talking about internal link? not public sharing links?

@sebastianschauenburg
Copy link
Author

Correct. I'm not talking about public sharing links (haven't enabled anything like that). Just the normal (internal) links.

@skjnldsv
Copy link
Member

skjnldsv commented Jun 6, 2019

Ahaaah! I get it now :)
Indeed, there is no way to direct download.

@jancborchardt @juliushaertl since we might want to add a way to directly open one of the action (the default for example for collabora direct open), we should maybe consider having a way to add the action id in the url?

For example https://nextcloud.my.domain/index.php/f/231641/download would trigger the download action, https://nextcloud.my.domain/index.php/f/231641/default the default action, https://nextcloud.my.domain/index.php/f/231641/extract, the extract action (if installed?) That would require a simple change on our side to just map the available actions and trigger if one matches 🤔

@skjnldsv skjnldsv reopened this Jun 6, 2019
@juliushaertl
Copy link
Member

@skjnldsv Sounds good, ideally we should also make sure that the action is represented in the files app parameters so just reloading the page with the editor open will also show it again:

nextcloud.my.domain/index.php/apps/files/?dir=/&fileid=230&action=default

@skjnldsv
Copy link
Member

skjnldsv commented Jun 6, 2019

You mean as a js history?

@skjnldsv skjnldsv added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Jun 6, 2019
@juliushaertl
Copy link
Member

History as well, but also so you can just copy the link and open it in a new browser tab/window and you end up on the same editing view as before.

@skjnldsv skjnldsv added this to the Nextcloud 17 milestone Jun 6, 2019
@skjnldsv skjnldsv changed the title ability to for a direct download link for a file Ability to a direct download link to a file Jun 28, 2019
@thebearon
Copy link

This is more or less the same as #12470, right?

@skjnldsv
Copy link
Member

Yes @thebearon

@skjnldsv
Copy link
Member

Duplicate of #12470

@RT4U
Copy link

RT4U commented Jul 13, 2019

This implements this

#16377

@hostingnuggets
Copy link

Where can I find a status of this issue to see when it will be implemented into Nextcloud?

Thanks

@jakobroehrl
Copy link

@hostingnuggets
Look at "Milestone"

@hostingnuggets
Copy link

Ah great, so it will be implemented into Nextcloud 17. Looking forward to that!

@skjnldsv
Copy link
Member

@hostingnuggets 18 most likely

@skjnldsv skjnldsv removed this from the Nextcloud 17 milestone Aug 23, 2019
@hostingnuggets
Copy link

hostingnuggets commented Aug 23, 2019

:( will have to be patient then... Maybe this issue shouldn't be closed then? or where can I track that this issue is on the TODO list for Nextcloud 18?

@BigBen2003
Copy link

== English ==
Hi there,

another method is to go through the browser's web developer tools:

To do this, you can view the source code of the website via web developer tools. Then click on the entry to which the download link is to be searched. You only have to go a little higher in the source code, up to the class "name". The direct download link can be found in this div element.

If the context menu is not changed by the website, a "Copy link address" command is also available.

The copied URL address directly copies the desired file from the Nextcloud.

== German ==
Hallo,

eine andere Methode ist die, über Web-Entwickler-Tools der Browser zu gehen:

Hierzu lässt man sich den Source-Code der Webseite via WebEntwickler-Tools anzeigen. Anschließend klickt man auf den Eintrag, zu dem der Download-Link gesucht werden soll. Im Source-Code muss nu nur etwas höher gegangen werden, bis zur Class "name". In diesem Div-Element gefindet sich der direkte Download-Link.

Wenn das Kontext-Menü von der Webseite nicht verändert wird, steht ein Befehl "Link Adresse kopieren" auch zur Verfügung.

Die kopierte URL-Adresse kopiert direkt ohne Umwege die gewünschte Datei aus dem Nextcloud herunter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of enhancement
Projects
None yet
Development

No branches or pull requests

9 participants