For the filefield attribute, you need the name of the <input
type="file">.
The destination attribute has to be a directory (not a file!). You can
find out the name of the uploaded file with #cffile.serverFile#.

<cffile action=""
filefield="tLogoFilename"
destination="#variables.home_dir#media\images\clientlogos\"
nameconflict="overwrite">

> -----Original Message-----
> From: Monique Boea [mailto:[EMAIL PROTECTED]
> Sent: woensdag 26 mei 2004 16:27
> To: CF-Talk
> Subject: RE: CFFILE
>
> <cftry>
>     <!--- upload new file --->
>     <cffile action="" filefield="form.tLogoFilename"
> destination="#variables.home_dir#media\images\clientlogos\#var
> iables.tLogoFi
> lename#" nameconflict="overwrite">
>    <cfcatch>
>     <SCRIPT LANGUAGE="_javascript_" TYPE="text/_javascript_">
>     alert("Error uploading Logo file.  Please try again.");
>     history.go(-1);
>     </SCRIPT>
>     <cfexit>
>    </cfcatch>
>    </cftry>
>
> There is one for each image (3)
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to