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

191
Views
React select file by giving a path and not selecting a file

I want to select a file from a path that I specify in the input box automatically into my state variable, I don't want to open a select file dialog to select a file? any way thhis can be done?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Unfortunately (or fortunately for all users around the world), there is no way to gain direct access to user's file system using JavaScript in a browser.

You are limited to the selection dialog or drag&drop behavior. It's because of security reasons and how sandboxes used in browsers work.

about 4 years ago · Juan Pablo Isaza Report
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!