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

381
Views
cómo cargar un archivo en el servidor web localhost y obtener la ruta del archivo

Implementé un host local web, http://localhost:8080 e incluí el siguiente código para tomar un archivo de carga.

 <form action="/action_page.php"> <input type="file" id="myFile" name="filename"> <input type="submit"> </form>

Estoy tratando de leer el nombre del archivo y la ruta del archivo en el servidor web local en mi código javascript. como puedo conseguir esos dos

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Puede usar la siguiente función para obtener el nombre, la ruta del archivo, el tamaño y otra información sobre el archivo cargado.

 const handleUploadClick = (event) => { const file = event.target.files[0] console.log(file) // returns an object }
about 4 years ago · Santiago Trujillo 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!