Problem with Mac on IE5 is: When you hit upload with nothing in the upload
feild...
it sends a few bits...white space or something that kicks in your
upload code in and produces errors.
Here's what I did with IE 5 /Mac with a multiple upload.
On the upload page some JS to give us a hidden form field to test.
<INPUT type="file" name="filename#Tempid#"
onchange="this.form.iefilename#tempid#.value=this.value;" size=20>
<input type="hidden" name="iefilename#tempid#"
onchange="this.value=this.form.filename#tempid#.value;">
On the receiving page:
Note the Trim on Iefilename. That gets rid of the white space which caused
the Upload code to execute.
<CFLOOP INDEX="ii"
List="#form.ids#">
<CFOUTPUT>
<CFSET ID = #Evaluate("#ii#")#>
<CFSET Filename = #Evaluate("Filename#ID#")#>
<CFSET IEFilename = #Evaluate("Form.IEFilename#ID#")#>
<CFSET ief=#Trim(iefilename)#>
<CFIF #Ief# IS NOT "">
<cffile action="UPLOAD"
filefield="Filename#ID#"
destination="E:\Uploads\#getuserrecord.customerid#"
nameconflict="OVERWRITE"
>
</CFLOOP>
----- Original Message -----
From: "kaigler" <[EMAIL PROTECTED]>
To: "CF-Server" <[EMAIL PROTECTED]>
Sent: Sunday, April 01, 2001 10:19 AM
Subject: Re: cffile error 5
> The strange thing is that the user is not even uploading information to
the
> site. I have checks to make sure that they do not get to this code unless
> they are uploading something. It seems to work fine with the pc versions
> of IE.
>
> I am sure that there is something I am missing I am just not sure what.
>
> We are running Win2000 with 4.5.1 sp1 professional.
>
> I will let you know if I can resolve this problem.
>
> thanks
> kaigler
>
>
>
> At 01:58 PM 4/1/2001 +1000, you wrote:
> >Hi kaigler
> >
> >We are having the same problem intermittently with file uploads from
PC's,
> >same error. I've seen the articles that talk about the trailing slash in
the
> >destination path in the knowledgebase, didn't help us with it.
> >
> >Here's the tip I got from another list although I'm not sure it cured all
> >our woes with it. If you are trying to overwrite a file that has very
> >recently been viewed (served by IIS) there may be a lock put on it by IIS
> >which will cause the error.
> >
> >If there's any other ideas out there I'd be very pleased to hear them.
Our
> >platform is CF ENT 4.5 SP2, NT SP6a
> >
> >Craig
> >
> >
> >----- Original Message -----
> >From: "kaigler" <[EMAIL PROTECTED]>
> >To: "CF-Server" <[EMAIL PROTECTED]>
> >Sent: Sunday, April 01, 2001 8:28 AM
> >Subject: cffile error 5
> >
> >
> > > Hello,
> > >
> > > I took a look at the allaire site for a resolution to this problem but
I
> >am
> > > doing what they say to do and still get the error.
> > >
> > > Actually this is not true. The problem is only occurring on a Mac
using
> >IE
> > > 5.0 (latest version) so I am told.
> > >
> > > I use a pc and cannot recreate the error.
> > >
> > > Here it is:
> > >
> > > Error processing CFFILE
> > > Error attempting to save uploaded file to path
> > > 'c:\inetpub\wwwroot\temp\cfmail\..' Access is denied. (error 5)
> > > The error occurred while processing an element with a general
identifier
> >of
> > > (CFFILE), occupying document position (41:3) to (44:28).
> > >
> > >
> > >
> > > Here is my code, cffile is on line 41:
> > >
> > > <cffile destination="c:\inetpub\wwwroot\temp\cfmail\"
> > > action="upload"
> > > filefield="filename"
> > > nameconflict="overwrite">
> > >
> > > Thanks for the help in advance,
> > > kaigler
> > >
> > >
> > >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com