Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Download endpoint option #56

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

protyposis
Copy link

I added an option for people who prefer to have download paths instead of a query parameter, e.g. http://myblog.com/download/123 instead of http://myblog.com/?download=123. This can be toggled in the advanced settings, called 'Download Endpoint'.

It's just the last 3 commits which build upon my previous pull request #55.

Tell the browser through the Content-Disposition header if it should attempt to open or save a file. This approach neither requires disabling the folder protection nor exposes the direct file path.
Supplied second parameter can now switch between forced query-style, forced endpoint-style, and automatic (derived from settings, which is the default) link generation. The forced styles are needed in the settings to show examples to the user.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant