Skip to content

Add support for downloading - #488

Merged
davep merged 14 commits into
mainfrom
download-support
Oct 4, 2026
Merged

davep merged 14 commits into
mainfrom
download-support

Conversation

@davep

@davep davep commented Oct 3, 2026

Copy link
Copy Markdown
Owner

This PR adds support for unconditionally downloading the content of a link, or conditionally downloading the content of an unsupported URI.

Closes #478.

This doesn't add the code that does the downloading. This adds the code that
funnels other UI elements towards allowing for downloading.
@davep davep self-assigned this Oct 3, 2026
@davep davep added Enhancement New feature or request TODO A thing I'm planning on doing Protocol: Gemini Things to do with Gemini and Gemtext labels Oct 3, 2026
davep added 8 commits October 3, 2026 10:46
This is a pretty simple approach for now. The problem I see here is that I
probably want to handle downloading via input too, and the like. For now
this simply assumes that the data on the end of the URI is available without
the need to mess with new certificates or get user input.
While what I had was working, I didn't like where it was going. I want to
try, as much as possible, to work via the existing code that handles
requests. So let's funnel the requests into a DownloadLocation class that
can be fed to the handlers and then they can just save to the target file
once all the other work is done.

Is the idea anyway. This is just a placeholder for now as I have to go afk.
@davep davep added Protocol: Finger Things to do with the Finger protocol Protocol: Gopher Things to do with the Gopher protocol and gophermaps Protocol: Nex Things to do with the Nex protocol Protocol: Titan Things to do with the Titan protocol Protocol: Spartan Things to do with the Spartan protocol labels Oct 4, 2026
@davep
davep marked this pull request as ready for review October 4, 2026 14:17
@davep
davep merged commit cc5301a into main Oct 4, 2026
7 checks passed
@davep
davep deleted the download-support branch October 4, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request Protocol: Finger Things to do with the Finger protocol Protocol: Gemini Things to do with Gemini and Gemtext Protocol: Gopher Things to do with the Gopher protocol and gophermaps Protocol: Nex Things to do with the Nex protocol Protocol: Spartan Things to do with the Spartan protocol Protocol: Titan Things to do with the Titan protocol TODO A thing I'm planning on doing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add the option to download an unhandled mime type

1 participant