Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

210
Vistas
how to get one or more files in one <input type="file" multiple />

It's confusing to me, I want to get one or more files using an input with multiple attribute.

I have created the following form:

<form method="get">
  <input type="file" name="file" multiple />
  <br /><br />
  <input type="submit" />
</form>

When I select a file and submit the form, at the end of the URL and after the question mark(?) it shows:

?file=fileName.jpg

My problem is that if the user selects two files, they must show both in the URL. Like the following:

?file=fileName.jpg&anotherFileName.jpg

I can actually have more than one file. But no matter how many files I select, it only shows one.

This is not what I'm looking for, it only shows selected photos (http://jsfiddle.net/0GiS0/Yvgc2/). But I want to submit all the files in the form, using only one <input type="file" />

about 4 years ago · Juan Pablo Isaza
3 Respuestas
Responde la pregunta

0

input type="file" name="file" multiple="true"

about 4 years ago · Juan Pablo Isaza Denunciar

0

<form method="get" enctype="multipart/form-data">
    <input type="file" name="file" multiple="" />
    <br /><br />
    <input type="submit" />
  </form>

enter image description here

about 4 years ago · Juan Pablo Isaza Denunciar

0

<form action="/upload" enctype="multipart/form-data" method="post">
  <input type="file" name="file" multiple>
  <br /><br />
  <button>Submit</button>
</form>

Use post and multipart format to upload files

about 4 years ago · Juan Pablo Isaza Denunciar
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 Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda