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

122
Views
HTML and Javascript: Open file explorer to allow users to select a directory instead of just files, without the webkitdirectory attribute?

Is it possible to open the operating system file explorer/browser to allow users to select a directory instead of just files, without using the webkitdirectory attribute of an html input tag? It appears that the Dropbox website does this for folder uploads, but perhaps they add the webkitdirectory attribute programatically. (I'd rather not use the webkitdirectory attribute because it is non-standard, not recommended for production, and my Svelte app is complaining about it).

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

0

As noted by @Mark Hanna, I used the File System Access API instead of the webKitdirectory input attribute. In TypeScript, the methods of the API were not recognized, so installed the @types/wicg-file-system-access and in the .tsconfig added

"compilerOptions": {
    "types": ["@types/wicg-file-system-access"]
  }
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!