i have this multiple file upload wich is all fine except I cant quite figure out what 
to name the 5 different '#CFFILE.ServerFile#'. I know I have scene but as usually i 
cant find it.
i put in the relevant code.



<!--- do the file 1 upload now --->
 <cfif #form.picture1# NEQ "">
 <cffile Action="upload"
  Filefield="picture1"
  DESTINATION="#UPpath#"
  Nameconflict="makeunique" accept="image/*">
 </cfif>

<!--- do the file 2 upload now --->
 <cfif #form.picture2# NEQ "">
 <cffile Action="upload"
  Filefield="picture2"
  DESTINATION="#UPpath#"
  Nameconflict="makeunique" accept="image/*">
 </cfif>

<!--- do the file 3 upload now --->
 <cfif #form.picture3# NEQ "">
 <cffile Action="upload"
  Filefield="picture3"
  DESTINATION="#UPpath#"
  Nameconflict="makeunique" accept="image/*">
 </cfif>

<!--- do the file 4 upload now --->
 <cfif #form.picture4# NEQ "">
 <cffile Action="upload"
  Filefield="picture4"
  DESTINATION="#UPpath#"
  Nameconflict="makeunique" accept="image/*">
 </cfif>

<!--- do the file 5 upload now --->
 <cfif #form.picture5# NEQ "">
 <cffile Action="upload"
  Filefield="picture5"
  DESTINATION="#UPpath#"
  Nameconflict="makeunique" accept="image/*">
 </cfif>


<!--- insert the  contents of the form into the db --->
<cfif isdefined ("form.submit")>
<cfquery name="qaddlisting" datasource="#dsn#">
  INSERT INTO listings (mlsID, featured_listing, status, price, type, address, city, 
state, zip, neighborhood, complex, year, beds, baths, 
  sqft, garage, basement, basementsqft, finished, stories, yard, yardsize, view, 
taxes, hoa, features1, description, picture1, picture2, picture3, picture4, picture5)
    VALUES ('#form.mlsID#', '#form.featured_listing#', '#form.status#', 
'#form.price#', '#form.type#', '#form.address#', '#form.city#', '#form.state#', 
'#form.zip#', 
    '#form.neighborhood#', '#form.complex#', '#form.year#', '#form.beds#', 
'#form.baths#', '#form.sqft#', '#form.garage#', '#form.basement#', 
'#form.basementsqft#', '#form.finished#',
     '#form.stories#', '#form.yard#', '#form.yardsize#', '#form.view#', 
'#form.taxes#', '#form.hoa#', '#form.features1#', '#form.description#',
    '#CFFILE.ServerFile#', '#CFFILE.ServerFile#', '#CFFILE.ServerFile#', 
'#CFFILE.ServerFile#', '#CFFILE.ServerFile#')
</cfquery>
</cfif>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to