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

281
Views
How to get the path of browsed and selected file using javascript?

How to get the brows and selected file's path using JavaScript

   DataUpload(FormParent) {

        const newupload_file = document.createElement('input')
        newupload_file.className = 'upload_data'
        newupload_file.type = 'file'
        newupload_file.name = 'file_name'
        newupload_file.style.display = 'block'

        newupload_file.addEventListener("change", function() {

            console.log(newupload_file)
            for (var i = 0; i < newupload_file.files.length; i++) {
                console.log(newupload_file.files[i].name);
            }
        }, false);

        FormParent.append(newupload_file)

    }

I am not able to get the file path, the property I can only get the file name 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!