Skip to content

Download button should download from node, not gateway. #2119

Description

@kevincox

Is your feature request related to a problem? Please describe.
When I download a file browsing my local node it often is slow or times out. This is because it is using the gateway rather than downloading from the node's API. This is annoying because I am on the same network as my node and it would be significantly faster, not even counting slowness in DHT traversal that the gateway needs to do.

The "Public Gateway" configuration on the settings page says

Choose which public gateway you want to use when generating shareable links.

A download isn't generating a sharable link so I don't understand why the public gateway should be used. I would expect it to download directly from the node's API.

Describe the solution you'd like
Downloads in the WebUI should use the API, not the public gateway.

Describe alternatives you've considered
Update the docs to state that the gateway is used both for downloads and generating sharable links. This would at least make the product consistent, but doesn't improve the performance issue.

Additional context
The version at the bottom of the WebUI is 2f9f306.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Critical: Tackled by core team ASAParea/screen/filesIssues related to Files screeneffort/hoursEstimated to take one or several hoursexp/intermediatePrior experience is likely helpfulkind/bugA bug in existing code (including security flaws)status/readyReady to be worked

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions