This works for me:
<cfif len(trim(form.assetImagePreview))>
<cftry>
<cffile action="upload"
filefield="fileAssetImagePreview"
destination="#request.fsRoot#/images/dynamic/preview/"
nameconflict="Overwrite">
<cfset preview = file.serverFile>
<cfcatch>
<cfset preview = "">
</cfcatch>
</cftry>
</cfif>
----
Scott Van Vliet
Senior Technical Analyst
Eclipse Advertising, Inc.
> -----Original Message-----
> From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 11, 2002 6:44 PM
> To: CF-Talk
> Subject: Re: MAC OS 10 - CFFILE
>
>
> Yes, I figured it was a browser issue, I am assuming that
> nothing can be
> done about it... I have looked high and low for workarounds
> with no avail.
>
> Not a good thing :)
>
> Thanks for taking so much time ... I am going to have the
> customer try
> Netscape for Mac and see if they have any better luck!
>
> Thanks again
> Paul Giesenhagen
> QuillDesign
>
>
>
>
> > 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:
> > >
> > >
> >
>
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
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