Hi,
I've created a form that allows the user to upload an attachment.
I can save the attachment with <cffile> and create a directory (if none exists) with <cfdirectory> . However, I want to save the absolute filepath to a database field so I can use it as a hyperlink later.
I've tried to concatenate the directory path with a trimmed version of the form.UploadFile field contents, but it doesn't seem to work as I get back a c:.TMP file name instead of that which was actually uploaded.
Any ideas how I pull the location of the uploaded file back to a database?
thanks
neil
I've created a form that allows the user to upload an attachment.
I can save the attachment with <cffile> and create a directory (if none exists) with <cfdirectory> . However, I want to save the absolute filepath to a database field so I can use it as a hyperlink later.
I've tried to concatenate the directory path with a trimmed version of the form.UploadFile field contents, but it doesn't seem to work as I get back a c:.TMP file name instead of that which was actually uploaded.
Any ideas how I pull the location of the uploaded file back to a database?
thanks
neil
Comment