Rick Sanders wrote:
> I need to check to see if the file exists before it's uploaded, or it'll
> overwrite the existing video.
>
> Rick
Not if you use of 'nameconflict="makeunique"' parameter of the 
<cffile...> tag that exists for exactly this reason.  With this 
parameter set, CF will see that 'movie.wmv' already exists and change 
the name of the next file to 'movie1.wmv' or some other string that does 
not currently exist in the file system.  It will then inform you of what 
the new file name is in the 'file.ServerFileName' structure key.  It 
will also tell you if a rename was done in the 'file.FileWasRenamed' 
structure key.

If that is your only requirement you are working hard to reinvent a 
wheel already well built into ColdFusion.

Ian

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:298215
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