At 13:33 12/13/00 -0500, you wrote:
>Hi all,
>I stumbled on an odd situatiuon, but need to fix it. IF you try to UPLOAD a
>file with CFFILE that is 0 kb in size, CFFILE barfs. How can I restrict
>this? I can't read the file until it is on my web server to determine the
>file size. JavaScript can't do it either...
>
>Help...
>
>Jim
Sounds buggy to me. Perhaps you could check the variable directly,
if you used this HTML:
<INPUT TYPE=file name=uploaded>
Then do:
<CFIF Len(Form.uploaded)>
<CFFILE stufff...>
</CFIF>
Don't know how well Len will work on binary data but it might be ok,
and if not try Len(ToString(Form.uploaded)).
Ryan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists