jasonkeller
Programmer
Below is code that populates my Access Database. I need to some how modify this to upload 2 or more images from the same form. It works with the one image valued at "mainpicture_id." I would like to know how to include a "mainthumbnail_id" as well..
<cftransaction>
<cffile action="UPLOAD"
filefield="mainpicture_id"
destination="d:\mjgrant\web\photos\"
nameconflict="MAKEUNIQUE">
<CFQUERY DATASOURCE="mjgrant">
INSERT INTO products
(mainpicture_id,product_id,product_name)
VALUES
('#File.ServerFile#','#product_id#','#product_name#')
</CFQUERY>
</cftransaction>
<cftransaction>
<cffile action="UPLOAD"
filefield="mainpicture_id"
destination="d:\mjgrant\web\photos\"
nameconflict="MAKEUNIQUE">
<CFQUERY DATASOURCE="mjgrant">
INSERT INTO products
(mainpicture_id,product_id,product_name)
VALUES
('#File.ServerFile#','#product_id#','#product_name#')
</CFQUERY>
</cftransaction>