The dot ( .#imageExt#") is include in the variable. Also when done the way suggested it rights a folder but this time bearing the name "products(imagename)" ie \productsmypix which should be a directory. (Atabia)
Main Topics
Browse All TopicsCan anyone help? I just can't understand why this code writes a "folder" instead of a "file". Upon running the code when you view the directory it creates a "folder" 1st then creates the "file" ( folder bares the same name as the file)
<cffile action="upload" filefield="image"
destination="D:\Inetpub\vh
nameConflict="Overwrite">
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Oh he's right, he's right. Since you have action=upload, Coldfusion knows that it already has to write a file, the destination attribute should only tell what "folder" to upload the file into. You don't want to include the image name and extension in the destination attribute. Coldfusion already knows the image name and extension and will upload it to the folder provided in the destination attribute.
Good thinking Jester.
>>how does it know what file to write without me telling it the file name
it writes a copy of the uploaded file, using the same name as the uploaded file
why else have the name conflict process, it is there in case it tries to write an uploaded file with the same name as an existing file
the name is unique tot he file not the process
Business Accounts
Answer for Membership
by: AtabiaPosted on 2005-10-28 at 06:38:08ID: 15178784
You need the "."
osts\mysit e.co.uk\ht tpdocs\sec ure\images \products# imageName# .#imageExt #"
<cffile action="upload" filefield="image"
destination="D:\Inetpub\vh
nameConflict="Overwrite">