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

139
Views
HTML input="file" accept only from certain paths

I have a web page that allow to upload a file via the basic <input type=file /> I know that with javascript there's no way to get the full path after selection but .. is there a way to ACCEPT files only from certain paths, as I do with extensions (*.jpg, etc)?

I'm in a Windows systems intranet scenario and for security issues, the file I have to upload cannot be uploaded from any folder but only from a network share that contains read-only files written and authorized by administrators

Thanks in advance

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

0

No. And even if there was, how would you specify those paths for Windows/Mac/Linux systems. What about network attached volumes? You can only "suggest" mime-types/extensions and the file dialog is 100% up to the user.

about 4 years ago · Juan Pablo Isaza Report

0

No. That is not a feature that browsers provide.

Nor would it be one that makes much sense in the context of the WWW as local file paths are custom to different systems.

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!