How to upload files with React Hook Form

preview_player
Показать описание
In this video we will use React Hook Form to handle file upload and file validation (with yup). The file input field will be registered with React Hook Form, yup validation is integrated into React Hook Form, and then the uploaded image will be converted to a Base64 string and shown on form submit.

► Social Media
Рекомендации по теме
Комментарии
Автор

This video was useful for me. Thank you!

lohqmrf
Автор

can you show how to add multiple files at same time ?

zhanezar
Автор

How to upload an excel file and validate it?

kevyyar
Автор

I managed to implement it but how do I clear the value and do a file size validation?

lcs
Автор

How to do it without converting to base 64?

YOUdudex