From: Amir Hardon (hardon_at_nonexisting.hamakor.org.il)
Date: Wed 01 Sep 2004 - 21:38:27 IDT
On Wednesday 01 September 2004 17:08, hamakor_at_amos.mailshell.com wrote:
> Hello,
>
> Looking for photo printing services, I found a few sites which allow
> clients to upload
> the photos via the net.
>
> One of the sites (Klikcenter) allows uploading about 5 files from a
> standard web form
> with "Browse" buttons or, using an ActiveX control, to upload entire
> directories.
>
> I asked about support for non-IE or non-Windows platforms and got a
> reply that
> it won't work.
>
> Instead of just telling them they lost my business because of this I'd
> like to try to help
> them find a standards-based solution.
>
> Is anyone here aware fo a way to upload multiple files based on w3c
> standards? (short
> of putting them all in a zip file).
>
> Cheers,
>
> --Amos
I implemented a nice way for uploading multiple pictures some time ago.
It have one main page with a table for the pictures, and an "Upload" button,
clicking the button pops up a new page in a small window with the <input
type="file"> tag, after uploading the PHP script returns an HTML with a
Javascript that inserts a new row to the table in the main page with the new
thumbnail in it (using DOM) and closes the upload window.
The table includes a remove button for each picture that also pops up a new
window pointing to a PHP script that removes the file and returns an HTML
with Javascript the removes the line from the table.
It's pretty convenient for use.
Another option is having a Javascript that inserts a new input object
(type="file") whenever a file is chosen in the first file object. (It can be
easily done using cloneNode).
Nothing like choosing a directory for upload but that's the best option I
could think of.
-Amir.
This archive was generated by hypermail 2.1.7 : Wed 01 Sep 2004 - 21:34:48 IDT