> I have an interesting problem. We're developing a windows-based program
that
> will be creating a html file, uploading it with any images to a temp
> directory on a web site, then calling a CF template with a set of url
> parameters. That template will move the uploaded files to a directory
> (ensuring they have unique filenames) then write the new filenames and the
> passed parameters to a db table.
>
> Sounds fairly straightforward... my problem is, the NAMECONFLICT attribute
> of CFFILE appears to be available only for ACTION="UPLOAD" - not COPY.
This
> seems quite bizarre to me. I have the same set of name conflict issues
when
> copying or moving files from directory to directory as I do when
uploading.
> So why would they leave this out?
Just use FileExists() and see if a file with the desired name already
exists. If so, _you_ the programmer decide how to handle the conflict.
Copy to a unique file name, delete the old one first, don't do the copy,
whatever.
Jim
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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