>- see footer for list info -< The best way to find out would be to dump CFFILE after each cffile tag.
<cffile...> <cfdump var="#CFFILE#" label="first upload"> <cffile...> <cfdump var="#CFFILE#" label="second upload"> See what that shows up. BTW, your code has a </cfoutput> with no oening one. Ade -----Original Message----- From: Paul Swingewood [mailto:[EMAIL PROTECTED] Sent: 12 January 2005 16:38 To: [email protected] Subject: [CF-Dev] Last one for today ... >- see footer for list info -< I am uploading a PDF file to the server.... I have this ... <!--- UPLOAD THE PROPERTY DETAILS ---> <cffile action ="UPLOAD" filefield ="details" nameconflict = "overwrite" accept = "application/pdf" destination = "#application.DetailsDirectory#"> <cfif #file.filewassaved# eq "yes"><!--- Were the details saved? ---> <cfset details = '#file.serverfile#'> <cfoutput>Details = #details#<br></cfoutput> </cfif> <!--- UPLOAD THE SMALL PROPERTY PICTURE ---> <cffile action ="UPLOAD" filefield ="smallpic" nameconflict = "overwrite" accept = "image/jpg, image/pjpeg" destination = "#application.UploadDirectory#"> </cfoutput> <cfif #file.filewassaved# eq "yes"><!--- Was the small pic saved? ---> <cfset smallpic = '#trim(file.serverfile)#'> <cfoutput>SmallPic = #SmallPic#<br></cfoutput> </cfif> Now the funny thing is that #details# contains the directory of the file (at least its the same as the directory "propertyDetails") and not the filename as I would expect. I use similar code to upload a pic and that works fine .... What am I doing wrong _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help >-< _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
