Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

original filename not visible in save as-window. #108

Open
bartgrefte opened this issue Dec 1, 2016 · 1 comment
Open

original filename not visible in save as-window. #108

bartgrefte opened this issue Dec 1, 2016 · 1 comment

Comments

@bartgrefte
Copy link

A couple of months a go, a Dutch forum I regularly visit started using Camo to be able to offer all pictures through https.

Unfortunately, because of this, every picture loaded through Camo cannot be saved using the original filename. The save as-window always shows ic.tweakimg.net.jpg.

Is there an option that can be enabled to show the original filename in the save as-window?

@dropwhile
Copy link

dropwhile commented Dec 1, 2016

A motivated person could add code to check if the request url ends with something that looks like a filename, and set that in a content-disposition: filename= header response.

I created a throwaway test branch in my Go reimplementation of camo, and it seemed to work ok (very minimal testing). link

Something similar could be done for camo itself. Most likely you would need to fork camo and make the change yourself though, as from what I understand (based on issues filed in this repo) camo itself is mostly feature frozen at this point.

Edit: Do note that there are some subtleties surrounding encoding the filename. My linked code example is purposefully naïve just for testing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants