-
I am trying to provide file-specific Meta Data like type and name in the Upload-Metadata header. Can someone point me into the right direction? |
Beta Was this translation helpful? Give feedback.
Answered by
yoavniran
Dec 25, 2022
Replies: 1 comment 1 reply
-
Hey @Tekpakma simple example: useRequestPreSend(({ items }) => {
const name = items[0].file.name;
return {
options: {
params: {
"md-fileName": name,
}
}
}
}); You can check out this guide for more info as well. Let me know if you have more questions. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Tekpakma
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @Tekpakma
You'd do that just like with other types of uploads. Using the useRequestPreSend hook
simple example:
You can check out this guide for more info as well.
Let me know if you have more questions.