Skip to content

Tus-uploady - Set file specs in Upload Metadata #441

Answered by yoavniran
Tekpakma asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Tekpakma
You'd do that just like with other types of uploads. Using the useRequestPreSend hook

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tekpakma
Comment options

Answer selected by Tekpakma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants