Type for signingUrlHeaders is wrong
mclean25 opened this issue · comments
Alex McLean commented
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}
// ...
/>
Guilherme Damaceno Hott commented
Thank you. This helped me.
Oleg Gun commented
same for signingUrlQueryParams