UniversalViewer / universalviewer

A community-developed open source project on a mission to help you share your πŸ“šπŸ“œπŸ“°πŸ“½οΈπŸ“»πŸ—Ώ with the 🌎

Home Page:http://universalviewer.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configuration setting to add query parameter to download links

demiankatz opened this issue Β· comments

It is possible that users may wish to control download behavior of links in the download menu -- some might prefer to have links open in a new tab, while others might prefer to have them download directly to the download folder of the browser. This behavior is controlled by server-side HTTP headers which cannot be changed from the client side. Thus, an implementation with full control might require the server-side code to react to query parameters in order to set appropriate headers. The UV cannot fully control this, but we could add a configuration setting to add optional query parameters to image links in the download menu, which the server-side code could be configured to act upon.

Prior to implementing this, we should identify more specific use cases so that we can design this as flexibly as possible.

This issue is extracted from #878; see that earlier issue for some related discussions and examples.