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
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