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

Reply via email to