Hi all,
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?
What I need to decide is, what will take the least amount of time/effort:
1. Getting the windows program to fake a multipart form submission instead
of uploading the files and calling a template. I don't know if this is
possible. The program is being written in Delphi.
2. Use a replacement for CFFILE. I don't know yet if there is one available.
3. Use CF code to figure out if a given filename exists before moving it.
Does anyone have any comments or suggestions? It sucks because I thought I
had it all mapped out already...
Thanks,
K.
______________________________________________________
Kay Smoljak - HTML/ColdFusion Developer - PerthWeb Pty Ltd
Internet Solutions for your business!
Level 9/105 St George's Tc - Perth - Western Australia
Ph: (08) 9226 1366 Fax: (08) 9226 1375 Mobile : 0419 949 007
Visit Perth online! : www.perthweb.com.au
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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