I'm enhancing a record edit screen that includes images. If you opened a
record for editing and saved it without changing the images, it was
generating a CFFILE can't find the file to uploard error on a mac. In
the code, there was a conditional if form.image is '' then do nothing,
but it was
On the mac, often a carriage return is appended to the form fields, so the
check to see if the field is empty will not work.
Try using a Trim() on the upload field.
bd
At 04:48 PM 26/04/02 -0400, you wrote:
I'm enhancing a record edit screen that includes images. If you opened a
record for
Trim() was the first thing I tried. But the value of the field was not a
space or carriage return, but something like c:WINNT\TEMP\SomeFile.tmp
which I thought was weird. How was a path existing on the server get
into the form field?
Brook Davies wrote:
On the mac, often a carriage return is
Good question. I recall seeing this happen also. I thin we solved it like this:
cfif trim(formfield) is not and listlast(formfield,.) is not tmp
cffile action=upload blah blah
/cfif
bd
At 05:06 PM 26/04/02 -0400, you wrote:
Trim() was the first thing I tried. But the value of the
Brook Davies wrote:
Good question. I recall seeing this happen also. I thin we solved it like this:
cfif trim(formfield) is not and listlast(formfield,.) is not tmp
cffile action=upload blah blah
/cfif
bd
I used: ...and Find(.tmp,form.fieldname) eq 0 etc. Is the browser
trying to
5 matches
Mail list logo