Skip to content

Type for signingUrlHeaders is wrong #237

@mclean25

Description

@mclean25

signingUrlHeaders has the type

signingUrlHeaders?: {
    additional: object;
} | undefined

But it appears that what it expects is more of a Record<string, unknown> which is incompatible with the aforementioned type. I was able to get my header to work by doing the following:

const headers = { Authorization: `Bearer ${accessToken}` }
<ReactS3Uploader
        // ...
        signingUrlHeaders={headers as any} 
        // ...
 />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions