Fmstrat / shorten

A URL Shortening and Privacy Tool for ownCloud
31 stars 14 forks source link

Feature request - separate short links for redirect and download actions #5

Open noisem opened 9 years ago

noisem commented 9 years ago

Hi Fmstrat

and first of all I would like to thank you for your great job !

In my opinion, it would be useful to have the possibility to indicate default shot link action download or redirect, for example for the case when the end-user wants to share a folder with images which receiver of the short link should just slide in the browser. It could be implemented (if possible) for example by generating 2 short links, one with default download action and another with redirect action:

  1. https://mydomain.ext/s?SHORTCODE - redirect
  2. https://mydomain.ext/d?SHORTCODE - download so, in share ownCloud screen end user would have 3 links: full link,short for redirect, short for download.

Thanks.

Fmstrat commented 9 years ago

I'm thinking I will handle this with adding a "&L" to the URL making it a link. Then I'll add a warning about the security implication. This way you wouodnt need two seperate URLs. Would that work?

noisem commented 9 years ago

sure, thank you