Skip to content

How to resume an upload with updated custom headers (e.g. refreshed auth signature) #216

@deJong-IT

Description

@deJong-IT

We're using TUSKit to upload files to Bunny.net.
Each upload requires a signed authorization signature, so we start uploads using:

tusClient.uploadFileAt(filePath: url, customHeaders: headers)

When the upload is interrupted or paused (for example, when the app is closed or internet is lost), we want to resume the upload later.
However, by that time our authorization signature may have expired.

Is there a way to resume an existing upload with updated custom headers (e.g. a new Authorization token/signature)?
If not, would it be possible to expose a way to modify headers before retrying or resuming?

Thanks for the great library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions