Replies: 2 comments 1 reply
-
moving to discussions. will answer there |
Beta Was this translation helpful? Give feedback.
-
Yes, this is definitely possible. In your case, you can retrieve the info you need from the return {
destination: {
headers: {
"my-header": "header-value"
}
}
}; The content of the object you return from the hook will be merged with the other upload options. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
I was looking for a way to manipulate the header information before uploading a file. We have an API that requires a Baerer token for authentication. Before triggering the upload process I would need to retrieve the baerer token and update the header information before posting the file.
Unfortunately, I haven't found an example how you can do this.
Thank you very much for your feedback
Beta Was this translation helpful? Give feedback.
All reactions