There is no way to know with ColdFusion (if at all) before it is uploaded to the server. After using <cffile action="upload" ...> you can use cffile.filesize. So:
<cffile action="upload" ...> <cfif cffile.filesize LT myMinimumFileSize> <cffile action="delete" ...> ... </cfif> Dominic -- Blog it up: http://fusion.dominicwatson.co.uk > 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. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:297237 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

