Gossamer Forum
Home : Products : DBMan : Customization :

Anyone into multiple uploads

Quote Reply
Anyone into multiple uploads
Hello All,
As its still the 90's and all is supposed to be possible I'd like to achieve multiple uploads!

But seriously I'd like to add more then one image to each record.

So when you add the upload mod to dbman the sub html_modify_form_record in html.pl specifys which directory to save the uploaded file to and assigns a name.

For example:
record=1 image=1.jpg
record=2 image=2.jpg

For multiple images I imagine the following:
record=1 image=1_a image=1_b image=1_c

So in the sub html_modify_form_record there is a hidden field naming the image:

<input type=hidden name="newfilename" value="$rec{$db_key}">

And this would be changed to;

<input type=hidden name="newfilename" value="$rec{$db_key}_a">

And if I wanted a maximum of 4 images I would have to have 4 upload fields in the modify form with each of them adding a different letter to the $db_key number. This could be acomplished by having 4 file-upload.cgi naming them file-upload1.cgi etc.

So my question is am I wasting my time or does this sound like a relatively simple modification.



------------------
Henk Jan Buchel
Classic Boatworld
http://classicboatworld.net
Subject Author Views Date
Thread Anyone into multiple uploads HJ 2398 Oct 18, 1999, 2:13 AM
Post Re: Anyone into multiple uploads
JFrost 2342 Oct 18, 1999, 3:09 AM
Post Re: Anyone into multiple uploads
maps 2325 Oct 22, 1999, 6:49 AM
Post Re: Anyone into multiple uploads
BCD 2329 Oct 24, 1999, 5:24 AM
Post Re: Anyone into multiple uploads
dataKing 2345 Nov 30, 1999, 10:26 AM
Post Re: Anyone into multiple uploads
JFrost 2335 Nov 30, 1999, 11:39 AM
Post Re: Anyone into multiple uploads
HJ 2337 Dec 1, 1999, 12:05 AM
Post Re: Anyone into multiple uploads
oldmoney 2326 Dec 19, 1999, 4:08 AM