Batch Uploading

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I need to be able to update a number of files to a server inside a
password protected area for subsequent viewing through a browser.

The client currently has the ability to upload new files and also
replace them as necessary but now wants to do this on a regular basis
with a number of files, .doc, .pdf, xls etc.

I seems the file upload process only allows for 1 file at a time by
the user, does anyone have an elegant solution to this? I prefer that
they don't use ftp if possible but that seems to be the only way out.



Re: Batch Uploading

John schreef:
Quoted text here. Click to load it

Hi John,

You can upload as many files as you please in one form.
The limitation is on the formelement type="file", that only can handle 1
file at a time.
But you can add more file upload elements in your form.

Have a look at this page:

example 3 explain how to do multiple uploads.

Good luck.

Erwin Moller

Quoted text here. Click to load it

"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare

Re: Batch Uploading

On Wed, 10 Dec 2008 10:01:01 +0100, Erwin Moller

Quoted text here. Click to load it

Thanks Edwin

Won't that still require the client to enter each filename separately


Re: Batch Uploading

John escribió:
Quoted text here. Click to load it

Correct. It's a limitation of current HTML. Since PHP is server-side
there's not much it can do to overcome this.

If you want to implement folder uploads you must use a client-side
language that can read the file system. I've seen several solutions
implemented as Flash or Java applets.

-- - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web:
-- Mi web de humor al baño María:

Re: Batch Uploading

Álvaro G. Vicario wrote:
Quoted text here. Click to load it
Also be aware of the size and time limits for the settings.

There are per file and total sizes you will have to set in regards to
what you think may be uploaded and also per upload and script time
settings that may need to be adjusted.



Re: Batch Uploading

Quoted text here. Click to load it

Of course.  Imagine the security hole it would be if a web page had the
ability to upload arbitrary files from a client's computer.

Depending on the environment, you could write an application to do this,
and have your users download and execute it.
Tim Roberts,
Providenza & Boekelheide, Inc.

Re: Batch Uploading

John wrote:
Quoted text here. Click to load it
PHP isn't the right tool for this in my opinion.

Re: Batch Uploading

Quoted text here. Click to load it

I notice that PHP has a number of Zip file functions, could this be a
solution or am I missing something? If the client zipped up the files
they wanted, uploaded a single file through the interface and then I
unpack them and put them in the right place would that work?


Site Timeline