Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Uploaded File Location using cffile?

Guest
Apr 16, 2008 Apr 16, 2008
Greetings"

I have a form users fill out and send and have the option to attach a file:
cffile action = "upload"
filefield = "FileContents"

In order to get this to work, I needed to create a field in the DB named "FileContents".

When a file is uploaded, this gets stored in the FileContents : C:\ColdFusion8\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\neotmp315.tmp

The actual file does get uploaded to a directory folder that I specify with "destination=".

When an admin views the form submission, is there a way to display a link to the actual file that was uploaded ?

Something like:

<cfif #FileContents# IS ""> 
<cfelse><a href ="#filenamofuploadedfile#"> Click here to surface Uploaded File</a></cfif>?

Thanks in advance

newportri

TOPICS
Advanced techniques
292
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Apr 16, 2008 Apr 16, 2008
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 16, 2008 Apr 16, 2008
LATEST
Bob:

Thanks for your quick reply.

I will try this later today and post if it works-

Thanks again

newportri
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources