Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

112
Views
Single input separated by gaps React

Is it possible to make an input file as below as one input file, not six separate inputs? This should work so that only when you click on the gray box, the file explorer opens. Regardless of which field we click, the same file input should open. The problem is that I don't want an explorer window to open when I click on the white gaps between the gray boxes. I must have it done like this because if I do six separate fields, I won't be able to validate it in react hook form.

Or is it possible to combine few inputs into one? I mean how to combine this three inputs below that they will share the same memory, regardless on which I click and to which I add some files?

<input type="file" />
<input type="file" />
<input type="file" />

Here You can find rest of my question and code: File input validation using React Hook Form and Yup

enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!