We use this code in the filemanager's upload.cfm template:

<cfelseif cffile.FileSize gt 1048576><!--- Disallow files over 1MB --->

<cfset errorNumber = "1">

<cfset customMsg = "An error occured. The file uploaded has a size of
#(NumberFormat((cffile.FileSize / 1048576), '9.99'))#MB which is larger than
the allowed size of 1MB">

<cffile action="delete" file=
"#cffile.ServerDirectory##fs##cffile.ServerFile#">


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

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

Reply via email to