DEV Community

Cover image for Multiple file inputs with one submit button with React Hooks

Multiple file inputs with one submit button with React Hooks

Fadi on June 13, 2020

Recently, I was working on a project and I had to make multiple file inputs. The thing is every input should take only one file with certain type w...
Collapse
 
mohayman3600 profile image
MohamedAyman3600

Great! I will give it a try in my next project.

Collapse
 
fadiamg profile image
Fadi

Cool!
Let me know if you needed any help my friend.

Collapse
 
briansamu profile image
Brian Samu

Thank you so much!!! I couldn't find a solution anywhere and I was about to give up. Much appreciated.

Collapse
 
viniciusrio profile image
Vinicius Rio

Hey dude, thanks for that. I started learn react this month and I understand you code and your article. Great!

Collapse
 
fadiamg profile image
Fadi

Heyy buddy, I'm glad that liked my article.
Let me know if you needed any help ! :)
Happy Coding !

Collapse
 
ehab_elkady_ profile image
EHAB EL-KADY

That's great!!
That must have taken you a lot of search

Collapse
 
fadiamg profile image
Fadi • Edited

Yeah it did, but it was worth it.
Thank you <3

Collapse
 
dreaprince profile image
odusoga holalekan

Wow, this is great. This really helps, PLS can you adjust this code for just one input type file instead of multiple

Collapse
 
dienamo profile image
dienamo

Thank Fadi, great tutorial

Collapse
 
tdeovrat profile image
Deovrat Tiwari

How do i add a button to add more files after uploading one file?

Collapse
 
tr1010 profile image
H N

Thank you so much. You made my day.