Cita:
Iniciado por juanmi321 ... yo he visto que esta pregunta se ha hecho infinidad de veces aqui en el foro y pues queria de una vez darle una solucion.
Bueno ... y ¿dónde esta la solución que pretendes darle?
Cita: Por mi parte lo he estado investigando y he encontrado que con un ocx llamado XUpload, se puede lograr subir varios ficheros a la vez, pero ahun no lo aterrizo y no me funciona del todo bien, ...
Normalemte, cualquier componente de upload, puede subir varios ficheros a la vez, pero eso sí, cada fichero con su <input type=file>. Nadie subiría 100 archivos por muchísimas razones (tiempo, transferencia, espacio, etc), ya que normalemente se restringe el tipo y el tamaño del total de los archivos a subir.
ElAprendiz, te ha dado una liga que dice como se hace.
Cita: Si alguien mas tiene una idea de como resolverlo o hacer el Upload de varios archivos, repito sin necesidad de varias casillas de tipo file (por que que pasa si tengo que subir 100 archivos y no quiero que sean en zip).
Por su atencion y COLABORACION muchisimas gracias.
Bueno, existen restricciones naturales para la subida de archivos basados en formularios:
Cita: Limitations of Form-based Uploading RFC1867-compliant browsers such as IE 4.0+ or Netscape 3.0+ perform file uploads using an HTML form with the attributes <FORM METHOD="POST" ENCTYPE="multipart/form-data">. This form must contain one or more items of the type <INPUT TYPE=FILE>. The browsers display such items as regular text boxes with the button "Browse..." next to them. Clicking the Browse button invokes the standard Choose File dialog box which allows the user to select a file for uploading. The limitations of form-based uploading are:
The "Choose File" dialog shown by a browser does not allow multiple selections;
To upload multiple files at once, the HTML form must contain multiple <INPUT TYPE=FILE> boxes, each file must be selected individually;
A folder cannot be selected for uploading.
Default values for the file names cannot be pre-set (the VALUE attribute is ignored for <INPUT TYPE=FILE> tags);
There is no progress bar;
There is no way to set a default directory to select the files from;
There is no way to specify file filters to be displayed in the Files of type box of a "Choose File" dialog;
There is no way to put a limit on the size and number of files being uploaded before uploading begins;
There is no way to force users to select files with certain extensions only;
Aside from the file path, browsers do not send any information about the files being uploaded, so the file dates cannot be preserved.
Uploading cannot be performed in a batch-like process.
Y como puedes leer en el RFC en cuestión, es la forma eficiente de enviar esos flujos de datos por el protocolo HTTP. No creo que se pueda hacer sin "cosas" en el cliente que envíen los archivos.
Esta es una solución con un ActiveX:
http://www.15seconds.com/issue/990723.htm
Saludos