Skip to content

a function to abort downloads initiated with downloadFile #4157

@ffsPLASMA

Description

@ffsPLASMA

Is your feature request related to a problem? Please describe.

Currently, there is no way to stop the download of a file initiated via downloadFile from lua.
This can be an issue if downloading large files like IMG containers.
Unless you disconnect from server...

Describe the solution you'd like

Add a new function like abortDownload(handler) to be used if download was started manually in lua via downloadFile.

local downloadHandler = downloadFile("foo.bin")
-- if it takes too long...
abortDownload(downloadHandler)

Describe alternatives you've considered

Disconnect from server or stop resource.

Additional context

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions