Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type for signingUrlHeaders is wrong #237

Open
mclean25 opened this issue Aug 6, 2021 · 2 comments
Open

Type for signingUrlHeaders is wrong #237

mclean25 opened this issue Aug 6, 2021 · 2 comments

Comments

@mclean25
Copy link

mclean25 commented Aug 6, 2021

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} 
        // ...
 />
@mclean25 mclean25 changed the title Type for uploadRequestHeaders is wrong Type for signingUrlHeaders is wrong Aug 6, 2021
@guilhermehott
Copy link

Thank you. This helped me.

@TrejGun
Copy link

TrejGun commented Sep 4, 2021

same for signingUrlQueryParams

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants