I got to thinking about this.
I couldn't find the uploaded file, because:
1) it is uploaded to a temporary place
2) it is later purged by CFMX (more likely the Default server --
apparently at the end of
template execution.
So I completed the program by adding a cffile to save the uploaded
(temporary) file.
It worked fine!
CFMX on Mac OS X 10.2 Jaguar
Browser MS IE 5.2.1 on Mac OS X 10.2 Jaguar
Dick
Here's the program:
<cfif NOT isDefined("Form.image")>
<form action="TestForm.cfm" method="post"
enctype="multipart/form-data"
name="ThisForm" id="ThisForm">
Title: <input type="text" name="title" value="">
<br><br>
File Form Field: <input type="file" name="image">
<br><br>
<input type="submit" value="Run Test">
</form>
<cfelse>
<cfoutput>
Here is the results of your test:<hr>
Regular InputBox: (#form.title#)<br><br>
Result of the file: (#form.image#)<br><br>
</cfoutput>
<cffile
action="upload"
destination="/opt/coldfusionmx/wwwroot/mycfmxapps/pic.jpg"
filefield="image"
nameconflict="overwrite"
>
<image src="http://127.0.0.1:8500/mycfmxapps/pic.jpg">
</cfif>
Here's the result -- the uploaded image is displayed following the
displayed file path. (This may be removed by the CF-Talk list):
Here is the results of your test:
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists