Short answer is, you can't. You dont have that kind of control over the
browser.

CF should throw an error on a 0k file, and I am guessing that is the reason
for your question.

Just catch the error using <cftry> <cfcatch> blocks.
I would suggest that you do as much of your file processing first, before
you start committing data to the DB.

Ric.

On Jan 24, 2008 6:16 AM, Elena Aminova <[EMAIL PROTECTED]> wrote:

> How do I prevent a user from uploading a zero length (empty) file on
> upload?
> Is there a way to know the file size before the file is actually uploaded
> to the server?
> Any advice, resources or tips are appreciated.
>
> Thanks.
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297264
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to