• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Pruebas Online
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

198
Vistas
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.

almost 3 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda