Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
debmurph23 #1
CFFILE - Form field does not contain file
Hi,
I am having trouble using CFFILE and my multipart form.
I get this error:
The form field
"C:\CFusionMX7\runtime\servers\coldfusion\SERV ER-INF\temp\wwwroot-tmp\neotmp4366
..tmp" did not contain a file.
The CFFILE upload is:
<CFIF #filename# neq "">
<CFFILE filefield="#filename#" action="UPLOAD"
destination="c:\cfusionMx7\wwwroot\emails" nameconflict="MAKEUNIQUE">
<CFSET filepath="c:\cfusionMx7\wwwroot\emails\#File.Serve rfile#">
<CFELSE>
<CFSET filepath="">
</cfif>
The form is:
<form method="post" action="sendmail_test.cfm" enctype="multipart/form-data">
<input type="hidden" name="email" value="testmail@test.com">
<input type="hidden" name="from_required">
<input type="hidden" name="message_required">
<input type="hidden" name="subject_required">
<input type="hidden" name="from" value="test@test.com" size="30"><p>
<input type="hidden" name="fax" value="15555555555" size="30"><p>
Attachment:<br><input type="file" name="filename"><P>
Subject: <br> <input type="text" name="subject" size="50"><p>
Message: <br><Textarea name="message" cols="50" rows=5></textarea><p>
<input type="submit" name="submit" value="Send E-mail Now" class="button">
<input type="reset" value="Clear" class="button">
</form>
debmurph23 Guest
-
How to handle empty file field in the form
I have got the form that insert data into database. But if you leave file field in the form empty it gives an error " The form field "img" did not... -
Defined text field in form -> subject field in e-mail
Hi, I have a form on my web site which users send to me by mailto-function. I would like the text they write in a particular text field to... -
cffile err- The form field did not contain a file
You're the (wo)man :D -
cffile upload file field returns temporary path
Hi, I'm attempting to use cffile upload and the FORM file field is being returned as ... -
copy and paste form RTF document into field in asp form cause it to bypass field length and javascript validation - how to overcome?
I have a web form with several fields. If I copy & paste from a RTF document into a field, the javascript validation and field length are bypassed... -
MrEd #2
Re: CFFILE - Form field does not contain file
<CFFILE filefield="filename" action="UPLOAD"
destination="c:\cfusionMx7\wwwroot\emails" nameconflict="MAKEUNIQUE">
Take out the pound signs around "filename". Filename is the name of the
filefield. I would recommend naming the filefield something else. You're
confusing yourself.
Good luck!
MrEd Guest



Reply With Quote

