Paul

I got to thinking about this even more...

This is browser-webserver interface problem:

it is the browser's responsibility to provide access to the local file 
for upload (sometimes the browser copiesthe file to a local temp file 
that it creates).

Then the browser sends the file with the form to the web server.

the web server receives the file and saves it in some temporary area.

then the web server passes the information to the cfm template 
specified in the form action.

It appears as if there is something wrong with the browser or web 
server.

It is not a CF problem.

Dick

On Wednesday, September 11, 2002, at 06:36 PM, Dick Applebaum wrote:

> 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:
>
> 
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
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

Reply via email to