?
Solved

CFFILE action="upload" problem

Posted on 2003-03-17
3
Medium Priority
?
277 Views
Last Modified: 2013-12-24
Hi,
I have problem of uploading file using cffile.
Here is my code:

<CFIF (isDefined("FORM.filename") AND Len(FORM.filename) GT 0)>
     <CFFILE     DESTINATION="\" action="UPLOAD" filefield="FORM.filename" nameconflict="OVERWRITE">
</cfif>
<form name="form1" method="post" action="uploadtest.cfm">
<input type="file" name="filename">
<input type="submit" name="Submit" value="Submit">
</form>

when I tested it, it gave me this following error:

Error in CFFILE tag

The form field specified in the CFFILE tag (FILENAME) does not contain an uploaded file. Please be sure that you have specified the correct form field name.

The error occurred while processing an element with a general identifier of (CFFILE), occupying document position (10:2) to (10:92).

what did I do wrong?
Much appreciated.
0
Comment
Question by:widya219
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

by:widya219
ID: 8157261
I found the solution. I need the 'enctype="multipart/form-data"' in  my form tag.

It should be:
<form name="form1" method="post" action="uploadtest.cfm" 'enctype="multipart/form-data">
0
 
LVL 35

Expert Comment

by:mrichmon
ID: 10940669
No comment has been added lately, so it's time to clean up this question.
I will leave the following recommendation in the Cleanup topic area:

PAQ/Refund

Please leave any comments here within the next four days.

mrichmon
EE Cleanup Volunteer
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
ID: 10973162
PAQed, with points refunded (20)

ee_ai_construct - (re-order part number #xm34)
Community Support Moderator
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question