Re: CFFILE BTW
by the way: what are the properites I can use for file (after cffile/upload) I know #file.serverfile# how can I get a list of them? the documentation says nothing. THANKS! - Original Message - From: Foggy, Doreen [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, May 08, 2001 5:43 PM Subject: CFFILE Error Diagnostic Information Error processing CFFILE The directory specified in the DESTINATION attribute of the CFFILE tag chh-test\www\lmts_int\cic is not valid. The directory either does not exist or is not accessible by the ColdFusion service. The error occurred while processing an element with a general identifier of (CFFILE), occupying document position I am using the CFFILE tag for the first time and I am running into some problems. Please Help! The directory does exist and I am not sure what accessible by the ColdFuison service means. The directory is located on the web server. * I have two forms * upload.cfm (html form) * uploadfile.cfm (action page) The syntax for both is located below: Upload.cfm titleWebStar: Contracts Online/title /head body background=image/background_blue.gif text=White link=Silver vlink=Yellow alink=White img src=image/file.gif width=1200 height=50 border=0 alt= !--- This document was created with Cold Fusion Studio --- FORM ACTION=uploadfile.cfm ENCTYPE=multipart/form-dataMETHOD=POST table border=0 tr tdFile to upload:/td td input name=FileName size=50 type=FILE /td /tr tr tdFile Destination:/td td input type=text name=FileDestination value=\\chh-test\www\lmts_int\cic size=50 input type=SUBMIT size=50 value=Upload name=SUBMIT /td /tr /table nbsp; /FORM /BODY /HTML Upload.cfm titleWebStar: Contracts Online/title /head body background=image/background_blue.gif text=White link=Silver vlink=Yellow alink=White img src=image/file.gif width=1200 height=50 border=0 alt= !--- This document was created with Cold Fusion Studio --- cffile action=UPLOAD filefield=FileName destination=#form.FileDestination# nameconflict=OVERWRITE CFOUTPUT CENTER CF 3.1 CFFILE Tag File Upload Demonstration Results - Example 1P File Upload was Successful! Information about the file is detailed below. /CENTER HR TABLE CAPTIONBFile Information/B/CAPTION TR TH VALIGN=top ALIGN=LEFTFile Name:/THTD#File.ServerDirectory#\#FILE.ServerFile#/TD TH VALIGN=top ALIGN=LEFTContent Type:/THTD#File.ContentType#/TD /TR TR TH VALIGN=top ALIGN=LEFTContent SubType:/TH TD#File.ContentSubType#/TD TH VALIGN=top ALIGN=LEFTClient Path:/TH TD#File.ClientDirectory#/TD /TR TR TH VALIGN=top ALIGN=LEFTClient File:/THTD#File.ClientFile#/TD TH VALIGN=top ALIGN=LEFTClient FileName:/THTD#File.ClientFileName#/TD /TR TR TH VALIGN=top ALIGN=LEFTClient FileExt:/THTD#File.ClientFileExt#/TD TH VALIGN=top ALIGN=LEFTServer Path:/THTD#File.ServerDirectory#/TD /TR TR TH VALIGN=top ALIGN=LEFTServer File:/THTD#File.ServerFile#/TD TH VALIGN=top ALIGN=LEFTServer FileName:/THTD#File.ServerFileName#/TD /TR TR TH VALIGN=top ALIGN=LEFTServer FileExt:/THTD#File.ServerFileExt#/TD TH VALIGN=top ALIGN=LEFTAttempted ServerFile:/THTD#File.AttemptedServerFile#/TD /TR TR TH VALIGN=top ALIGN=LEFTFile Existed?/THTD#File.FileExisted#/TD TH VALIGN=top ALIGN=LEFTFile Was Saved?/THTD#File.FileWasSaved#/TD /TR TR TH VALIGN=top ALIGN=LEFTFile Was Overwritten?/THTD#File.FileWasOverWritten#/TD TH VALIGN=top ALIGN=LEFTFile Was Appended?/THTD#File.FileWasAppended#/TD /TR TR TH VALIGN=top ALIGN=LEFTFile Was Renamed?/THTD#File.FileWasRenamed#/TD TH VALIGN=top ALIGN=LEFTFile Size:/THTD#File.Filesize#/TD/TH /TR TR TH VALIGN=top ALIGN=LEFTOld File Size:/THTD#File.OldFileSize#/TD TH VALIGN=top align=LEFTDate Last Accessed:/THTD#DateFormat(File.DateLastAccessed,'DD MMM YY')#/TD /TR TR TH VALIGN=top align=LEFTDate/Time Created:/THTD#DateFormat(File.TimeCreated,'DD MMM YY')# #Timeformat(File.TimeCreated,'HH:MM:SS')#/TD TH VALIGN=top align=LEFTDate/Time Modified:/THTD#DateFormat(File.TimeLastModified,'DD MMM YY')# #Timeformat(File.TimeLastModified,'HH:MM:SS')#/TD /TR /TABLE /CFOUTPUT /BODY /HTML ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFFILE BTW
Well, I don't know how you missed this huge html table in the studio docs ;) (from cf studio 4.5.2 docs): Note Although the File prefix is still supported, it has been deprecated in favor of the CFFILE prefix. The following file upload status parameters are available after an upload. AttemptedServerFile Initial name ColdFusion used attempting to save a file, for example, myfile.txt. ClientDirectory Directory location of the file uploaded from the client's system. ClientFile Name of the file uploaded from the client's system. ClientFileExt Extension of the uploaded file on the client's system without a period, for example, txt not .txt. ClientFileName Filename without an extension of the uploaded file on the client's system. ContentSubType MIME content subtype of the saved file. ContentType MIME content type of the saved file. DateLastAccessed Date and time the uploaded file was last accessed. FileExisted Indicates (Yes or No) whether or not the file already existed with the same path. FileSize Size of the uploaded file. FileWasAppended Indicates (Yes or No) whether or not ColdFusion appended the uploaded file to an existing file. FileWasOverwritten Indicates (Yes or No) whether or not ColdFusion overwrote a file. FileWasRenamed Indicates (Yes or No) whether or not the uploaded file was renamed to avoid a name conflict. FileWasSaved Indicates (Yes or No) whether or not Cold Fusion saved a file. OldFileSize Size of a file that was overwritten in the file upload operation. ServerDirectory Directory of the file actually saved on the server. ServerFile Filename of the file actually saved on the server. ServerFileExt Extension of the uploaded file on the server, without a period, for example, txt not .txt. ServerFileName Filename, without an extension, of the uploaded file on the server. TimeCreated Time the uploaded file was created. TimeLastModified Date and time of the last modification to the uploaded file. -Original Message- From: Michael Lugassy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 2:03 PM To: CF-Talk Subject: Re: CFFILE BTW by the way: what are the properites I can use for file (after cffile/upload) I know #file.serverfile# how can I get a list of them? the documentation says nothing. THANKS! - Original Message - From: Foggy, Doreen [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, May 08, 2001 5:43 PM Subject: CFFILE Error Diagnostic Information Error processing CFFILE The directory specified in the DESTINATION attribute of the CFFILE tag chh-test\www\lmts_int\cic is not valid. The directory either does not exist or is not accessible by the ColdFusion service. The error occurred while processing an element with a general identifier of (CFFILE), occupying document position I am using the CFFILE tag for the first time and I am running into some problems. Please Help! The directory does exist and I am not sure what accessible by the ColdFuison service means. The directory is located on the web server. * I have two forms * upload.cfm (html form) * uploadfile.cfm (action page) The syntax for both is located below: Upload.cfm titleWebStar: Contracts Online/title /head body background=image/background_blue.gif text=White link=Silver vlink=Yellow alink=White img src=image/file.gif width=1200 height=50 border=0 alt= !--- This document was created with Cold Fusion Studio --- FORM ACTION=uploadfile.cfm ENCTYPE=multipart/form-dataMETHOD=POST table border=0 tr tdFile to upload:/td td input name=FileName size=50 type=FILE /td /tr tr tdFile Destination:/td td input type=text name=FileDestination value=\\chh-test\www\lmts_int\cic size=50 input type=SUBMIT size=50 value=Upload name=SUBMIT /td /tr /table nbsp; /FORM /BODY /HTML Upload.cfm titleWebStar: Contracts Online/title /head body background=image/background_blue.gif text=White link=Silver vlink=Yellow alink=White img src=image/file.gif width=1200 height=50 border=0 alt= !--- This document was created with Cold Fusion Studio --- cffile action=UPLOAD filefield=FileName destination=#form.FileDestination# nameconflict=OVERWRITE CFOUTPUT CENTER CF 3.1 CFFILE Tag File Upload Demonstration Results - Example 1P File Upload was Successful! Information about the file is detailed below. /CENTER HR TABLE CAPTIONBFile Information/B/CAPTION TR TH VALIGN=top ALIGN=LEFTFile Name:/THTD#File.ServerDirectory#\#FILE.ServerFile#/TD TH VALIGN=top ALIGN=LEFTContent Type:/THTD#File.ContentType#/TD /TR TR TH VALIGN=top ALIGN=LEFTContent SubType:/TH TD#File.ContentSubType#/TD TH VALIGN=top ALIGN=LEFTClient Path:/TH TD#File.ClientDirectory#/TD
RE: CFFILE BTW
I got the list form the ColdFusion 4.0 web application construction kit by: Ben Forta Chapter 28, Working with Files and Directories #File.ServerDirectory#\#FILE.ServerFile# #File.ContentType# #File.ContentSubType# #File.ClientDirectory# #File.ClientFile# #File.ClientFileName# #File.ClientFileExt# #File.ServerDirectory# #File.ServerFile# #File.ServerFileName# #File.ServerFileExt# #File.AttemptedServerFile# #File.FileExisted# #File.FileWasSaved# #File.FileWasOverWritten# #File.FileWasAppended# #File.FileWasRenamed# #File.Filesize# #File.OldFileSize# #DateFormat(File.DateLastAccessed,'DD MMM YY')#/ -Original Message- From: Michael Lugassy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 2:03 PM To: CF-Talk Subject: Re: CFFILE BTW by the way: what are the properites I can use for file (after cffile/upload) I know #file.serverfile# how can I get a list of them? the documentation says nothing. THANKS! - Original Message - From: Foggy, Doreen [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, May 08, 2001 5:43 PM Subject: CFFILE Error Diagnostic Information Error processing CFFILE The directory specified in the DESTINATION attribute of the CFFILE tag chh-test\www\lmts_int\cic is not valid. The directory either does not exist or is not accessible by the ColdFusion service. The error occurred while processing an element with a general identifier of (CFFILE), occupying document position I am using the CFFILE tag for the first time and I am running into some problems. Please Help! The directory does exist and I am not sure what accessible by the ColdFuison service means. The directory is located on the web server. * I have two forms * upload.cfm (html form) * uploadfile.cfm (action page) The syntax for both is located below: Upload.cfm titleWebStar: Contracts Online/title /head body background=image/background_blue.gif text=White link=Silver vlink=Yellow alink=White img src=image/file.gif width=1200 height=50 border=0 alt= !--- This document was created with Cold Fusion Studio --- FORM ACTION=uploadfile.cfm ENCTYPE=multipart/form-dataMETHOD=POST table border=0 tr tdFile to upload:/td td input name=FileName size=50 type=FILE /td /tr tr tdFile Destination:/td td input type=text name=FileDestination value=\\chh-test\www\lmts_int\cic size=50 input type=SUBMIT size=50 value=Upload name=SUBMIT /td /tr /table nbsp; /FORM /BODY /HTML Upload.cfm titleWebStar: Contracts Online/title /head body background=image/background_blue.gif text=White link=Silver vlink=Yellow alink=White img src=image/file.gif width=1200 height=50 border=0 alt= !--- This document was created with Cold Fusion Studio --- cffile action=UPLOAD filefield=FileName destination=#form.FileDestination# nameconflict=OVERWRITE CFOUTPUT CENTER CF 3.1 CFFILE Tag File Upload Demonstration Results - Example 1P File Upload was Successful! Information about the file is detailed below. /CENTER HR TABLE CAPTIONBFile Information/B/CAPTION TR TH VALIGN=top ALIGN=LEFTFile Name:/THTD#File.ServerDirectory#\#FILE.ServerFile#/TD TH VALIGN=top ALIGN=LEFTContent Type:/THTD#File.ContentType#/TD /TR TR TH VALIGN=top ALIGN=LEFTContent SubType:/TH TD#File.ContentSubType#/TD TH VALIGN=top ALIGN=LEFTClient Path:/TH TD#File.ClientDirectory#/TD /TR TR TH VALIGN=top ALIGN=LEFTClient File:/THTD#File.ClientFile#/TD TH VALIGN=top ALIGN=LEFTClient FileName:/THTD#File.ClientFileName#/TD /TR TR TH VALIGN=top ALIGN=LEFTClient FileExt:/THTD#File.ClientFileExt#/TD TH VALIGN=top ALIGN=LEFTServer Path:/THTD#File.ServerDirectory#/TD /TR TR TH VALIGN=top ALIGN=LEFTServer File:/THTD#File.ServerFile#/TD TH VALIGN=top ALIGN=LEFTServer FileName:/THTD#File.ServerFileName#/TD /TR TR TH VALIGN=top ALIGN=LEFTServer FileExt:/THTD#File.ServerFileExt#/TD TH VALIGN=top ALIGN=LEFTAttempted ServerFile:/THTD#File.AttemptedServerFile#/TD /TR TR TH VALIGN=top ALIGN=LEFTFile Existed?/THTD#File.FileExisted#/TD TH VALIGN=top ALIGN=LEFTFile Was Saved?/THTD#File.FileWasSaved#/TD /TR TR TH VALIGN=top ALIGN=LEFTFile Was Overwritten?/THTD#File.FileWasOverWritten#/TD TH VALIGN=top ALIGN=LEFTFile Was Appended?/THTD#File.FileWasAppended#/TD /TR TR TH VALIGN=top ALIGN=LEFTFile Was Renamed?/THTD#File.FileWasRenamed#/TD TH VALIGN=top ALIGN=LEFTFile Size:/THTD#File.Filesize#/TD/TH /TR TR TH VALIGN=top ALIGN=LEFTOld File Size:/THTD#File.OldFileSize#/TD TH VALIGN=top align=LEFTDate Last Accessed:/THTD#DateFormat(File.DateLastAccessed,'DD MMM YY')#/TD /TR TR TH VALIGN=top align=LEFTDate/Time Created:/THTD#DateFormat(File.TimeCreated,'DD MMM YY')# #Timeformat(File.TimeCreated,'HH:MM:SS')#/TD TH VALIGN=top align=LEFTDate/Time Modified:/THTD#DateFormat(File.TimeLastModified,'DD MMM YY')# #Timeformat(File.TimeLastModified,'HH:MM:SS')#/TD /TR /TABLE /CFOUTPUT /BODY
RE: CFFILE BTW
Here they are: CFFILE.AttemptedServerFile CFFILE.ClientDirectory CFFILE.ClientFile CFFILE.ClientFileExt CFFILE.ClientFileName CFFILE.ContentSubType CFFILE.ContentType CFFILE.DateLastAccessed CFFILE.FileExisted CFFILE.FileSize CFFILE.FileWasAppended CFFILE.FileWasOverwritten CFFILE.FileWasRenamed CFFILE.FileWasSaved CFFILE.OldFileSize CFFILE.ServerDirectory CFFILE.ServerFile CFFILE.ServerFileExt CFFILE.ServerFileName CFFILE.TimeCreated CFFILE.TimeLastModified --Dylan -Original Message- From: Michael Lugassy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 11:03 AM To: CF-Talk Subject: Re: CFFILE BTW by the way: what are the properites I can use for file (after cffile/upload) I know #file.serverfile# how can I get a list of them? the documentation says nothing. THANKS! - Original Message - From: Foggy, Doreen [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, May 08, 2001 5:43 PM Subject: CFFILE Error Diagnostic Information Error processing CFFILE The directory specified in the DESTINATION attribute of the CFFILE tag chh-test\www\lmts_int\cic is not valid. The directory either does not exist or is not accessible by the ColdFusion service. The error occurred while processing an element with a general identifier of (CFFILE), occupying document position I am using the CFFILE tag for the first time and I am running into some problems. Please Help! The directory does exist and I am not sure what accessible by the ColdFuison service means. The directory is located on the web server. * I have two forms * upload.cfm (html form) * uploadfile.cfm (action page) The syntax for both is located below: Upload.cfm titleWebStar: Contracts Online/title /head body background=image/background_blue.gif text=White link=Silver vlink=Yellow alink=White img src=image/file.gif width=1200 height=50 border=0 alt= !--- This document was created with Cold Fusion Studio --- FORM ACTION=uploadfile.cfm ENCTYPE=multipart/form-dataMETHOD=POST table border=0 tr tdFile to upload:/td td input name=FileName size=50 type=FILE /td /tr tr tdFile Destination:/td td input type=text name=FileDestination value=\\chh-test\www\lmts_int\cic size=50 input type=SUBMIT size=50 value=Upload name=SUBMIT /td /tr /table nbsp; /FORM /BODY /HTML Upload.cfm titleWebStar: Contracts Online/title /head body background=image/background_blue.gif text=White link=Silver vlink=Yellow alink=White img src=image/file.gif width=1200 height=50 border=0 alt= !--- This document was created with Cold Fusion Studio --- cffile action=UPLOAD filefield=FileName destination=#form.FileDestination# nameconflict=OVERWRITE CFOUTPUT CENTER CF 3.1 CFFILE Tag File Upload Demonstration Results - Example 1P File Upload was Successful! Information about the file is detailed below. /CENTER HR TABLE CAPTIONBFile Information/B/CAPTION TR TH VALIGN=top ALIGN=LEFTFile Name:/THTD#File.ServerDirectory#\#FILE.ServerFile#/TD TH VALIGN=top ALIGN=LEFTContent Type:/THTD#File.ContentType#/TD /TR TR TH VALIGN=top ALIGN=LEFTContent SubType:/TH TD#File.ContentSubType#/TD TH VALIGN=top ALIGN=LEFTClient Path:/TH TD#File.ClientDirectory#/TD /TR TR TH VALIGN=top ALIGN=LEFTClient File:/THTD#File.ClientFile#/TD TH VALIGN=top ALIGN=LEFTClient FileName:/THTD#File.ClientFileName#/TD /TR TR TH VALIGN=top ALIGN=LEFTClient FileExt:/THTD#File.ClientFileExt#/TD TH VALIGN=top ALIGN=LEFTServer Path:/THTD#File.ServerDirectory#/TD /TR TR TH VALIGN=top ALIGN=LEFTServer File:/THTD#File.ServerFile#/TD TH VALIGN=top ALIGN=LEFTServer FileName:/THTD#File.ServerFileName#/TD /TR TR TH VALIGN=top ALIGN=LEFTServer FileExt:/THTD#File.ServerFileExt#/TD TH VALIGN=top ALIGN=LEFTAttempted ServerFile:/THTD#File.AttemptedServerFile#/TD /TR TR TH VALIGN=top ALIGN=LEFTFile Existed?/THTD#File.FileExisted#/TD TH VALIGN=top ALIGN=LEFTFile Was Saved?/THTD#File.FileWasSaved#/TD /TR TR TH VALIGN=top ALIGN=LEFTFile Was Overwritten?/THTD#File.FileWasOverWritten#/TD TH VALIGN=top ALIGN=LEFTFile Was Appended?/THTD#File.FileWasAppended#/TD /TR TR TH VALIGN=top ALIGN=LEFTFile Was Renamed?/THTD#File.FileWasRenamed#/TD TH VALIGN=top ALIGN=LEFTFile Size:/THTD#File.Filesize#/TD/TH /TR TR TH VALIGN=top ALIGN=LEFTOld File Size:/THTD#File.OldFileSize#/TD TH VALIGN=top align=LEFTDate Last Accessed:/THTD#DateFormat(File.DateLastAccessed,'DD MMM YY')#/TD /TR TR TH VALIGN=top align=LEFTDate/Time Created:/THTD#DateFormat(File.TimeCreated,'DD MMM YY')# #Timeformat(File.TimeCreated,'HH:MM:SS')#/TD TH VALIGN=top align=LEFTDate/Time Modified:/THTD#DateFormat(File.TimeLastModified,'DD MMM YY')# #Timeformat(File.TimeLastModified,'HH:MM:SS')#/TD /TR /TABLE /CFOUTPUT /BODY /HTML ~~ Structure your ColdFusion code with Fusebox. Get the official book
RE: CFFILE BTW
From the documentation Evaluating the results of a file upload After a file upload is completed, you can retrieve status information using file upload parameters. This status information includes a wide range of data about the file, such as the file's name and the directory where it was saved. File upload status parameters use the File prefix, for example, File.ClientDirectory. The file status parameters can be used anywhere other ColdFusion parameters can be used. The following file upload status parameters are available after an upload. File Upload Parameters Parameter Description AttemptedServerFile Initial name ColdFusion used attempting to save a file, for example, myfile.txt. ClientDirectory Directory location of the file uploaded from the client's system. ClientFile Name of the file uploaded from the client's system. ClientFileExt Extension of the uploaded file on the client's system without a period, for example, txt not .txt. ClientFileName Filename without an extension of the uploaded file on the client's system. ContentSubType MIME content subtype of the saved file. ContentType MIME content type of the saved file. DateLastAccessed Date and time the uploaded file was last accessed. FileExisted Indicates (Yes or No) whether or not the file already existed with the same path. FileSize Size of the uploaded file. FileWasAppended Indicates (Yes or No) whether or not ColdFusion appended the uploaded file to an existing file. FileWasOverwritten Indicates (Yes or No) whether or not ColdFusion overwrote a file. FileWasRenamed Indicates (Yes or No) whether or not the uploaded file was renamed to avoid a name conflict. FileWasSaved Indicates (Yes or No) whether or not Cold Fusion saved a file. OldFileSize Size of a file that was overwritten in the file upload operation. ServerDirectory Directory of the file actually saved on the server. ServerFile Filename of the file actually saved on the server. ServerFileExt Extension of the uploaded file on the server, without a period, for example, txt not .txt. ServerFileName Filename, without an extension, of the uploaded file on the server. TimeCreated Time the uploaded file was created. TimeLastModified Date and time of the last modification to the uploaded file. Tip Use the File prefix to refer to these parameters, for example, #File.FileExisted#. Note File status parameters are read-only. They are set to the results of the most recent CFFILE operation. (If two CFFILE tags execute, the results of the first are overwritten by the subsequent CFFILE operation.) -Original Message- From: Michael Lugassy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 1:03 PM To: CF-Talk Subject: Re: CFFILE BTW by the way: what are the properites I can use for file (after cffile/upload) I know #file.serverfile# how can I get a list of them? the documentation says nothing. THANKS! - Original Message - From: Foggy, Doreen [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, May 08, 2001 5:43 PM Subject: CFFILE Error Diagnostic Information Error processing CFFILE The directory specified in the DESTINATION attribute of the CFFILE tag chh-test\www\lmts_int\cic is not valid. The directory either does not exist or is not accessible by the ColdFusion service. The error occurred while processing an element with a general identifier of (CFFILE), occupying document position I am using the CFFILE tag for the first time and I am running into some problems. Please Help! The directory does exist and I am not sure what accessible by the ColdFuison service means. The directory is located on the web server. * I have two forms * upload.cfm (html form) * uploadfile.cfm (action page) The syntax for both is located below: Upload.cfm titleWebStar: Contracts Online/title /head body background=image/background_blue.gif text=White link=Silver vlink=Yellow alink=White img src=image/file.gif width=1200 height=50 border=0 alt= !--- This document was created with Cold Fusion Studio --- FORM ACTION=uploadfile.cfm ENCTYPE=multipart/form-dataMETHOD=POST table border=0 tr tdFile to upload:/td td input name=FileName size=50 type=FILE /td /tr tr tdFile Destination:/td td input type=text name=FileDestination value=\\chh-test\www\lmts_int\cic size=50 input type=SUBMIT size=50 value=Upload name=SUBMIT /td /tr /table nbsp; /FORM /BODY /HTML Upload.cfm titleWebStar: Contracts Online/title /head body background=image/background_blue.gif text=White link=Silver vlink=Yellow alink=White img src=image/file.gif width=1200 height=50 border=0 alt= !--- This document was created with Cold Fusion Studio --- cffile action=UPLOAD filefield=FileName destination=#form.FileDestination# nameconflict=OVERWRITE CFOUTPUT CENTER CF 3.1 CFFILE Tag File
Re: CFFILE BTW
THANKS ContentType and ContentSubType - are they reliable enough? I allow people to upload gif/jpg to one of my sites, and ONLY jpg/gif but I bet some of them will try to rename a .mp3 file into .gif or something Can I use this to filter other formats, rather then images? What is the anticipated output with #CFFILE.Content/Sub# vars.? Also - what is the diffrent between ServerFile and ServerFilename? thanks again! Michael. - Original Message - From: Dylan Bromby [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, May 08, 2001 7:57 PM Subject: RE: CFFILE BTW Here they are: CFFILE.AttemptedServerFile CFFILE.ClientDirectory CFFILE.ClientFile CFFILE.ClientFileExt CFFILE.ClientFileName CFFILE.ContentSubType CFFILE.ContentType CFFILE.DateLastAccessed CFFILE.FileExisted CFFILE.FileSize CFFILE.FileWasAppended CFFILE.FileWasOverwritten CFFILE.FileWasRenamed CFFILE.FileWasSaved CFFILE.OldFileSize CFFILE.ServerDirectory CFFILE.ServerFile CFFILE.ServerFileExt CFFILE.ServerFileName CFFILE.TimeCreated CFFILE.TimeLastModified --Dylan -Original Message- From: Michael Lugassy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 11:03 AM To: CF-Talk Subject: Re: CFFILE BTW by the way: what are the properites I can use for file (after cffile/upload) I know #file.serverfile# how can I get a list of them? the documentation says nothing. THANKS! - Original Message - From: Foggy, Doreen [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, May 08, 2001 5:43 PM Subject: CFFILE Error Diagnostic Information Error processing CFFILE The directory specified in the DESTINATION attribute of the CFFILE tag chh-test\www\lmts_int\cic is not valid. The directory either does not exist or is not accessible by the ColdFusion service. The error occurred while processing an element with a general identifier of (CFFILE), occupying document position I am using the CFFILE tag for the first time and I am running into some problems. Please Help! The directory does exist and I am not sure what accessible by the ColdFuison service means. The directory is located on the web server. * I have two forms * upload.cfm (html form) * uploadfile.cfm (action page) The syntax for both is located below: Upload.cfm titleWebStar: Contracts Online/title /head body background=image/background_blue.gif text=White link=Silver vlink=Yellow alink=White img src=image/file.gif width=1200 height=50 border=0 alt= !--- This document was created with Cold Fusion Studio --- FORM ACTION=uploadfile.cfm ENCTYPE=multipart/form-dataMETHOD=POST table border=0 tr tdFile to upload:/td td input name=FileName size=50 type=FILE /td /tr tr tdFile Destination:/td td input type=text name=FileDestination value=\\chh-test\www\lmts_int\cic size=50 input type=SUBMIT size=50 value=Upload name=SUBMIT /td /tr /table nbsp; /FORM /BODY /HTML Upload.cfm titleWebStar: Contracts Online/title /head body background=image/background_blue.gif text=White link=Silver vlink=Yellow alink=White img src=image/file.gif width=1200 height=50 border=0 alt= !--- This document was created with Cold Fusion Studio --- cffile action=UPLOAD filefield=FileName destination=#form.FileDestination# nameconflict=OVERWRITE CFOUTPUT CENTER CF 3.1 CFFILE Tag File Upload Demonstration Results - Example 1P File Upload was Successful! Information about the file is detailed below. /CENTER HR TABLE CAPTIONBFile Information/B/CAPTION TR TH VALIGN=top ALIGN=LEFTFile Name:/THTD#File.ServerDirectory#\#FILE.ServerFile#/TD TH VALIGN=top ALIGN=LEFTContent Type:/THTD#File.ContentType#/TD /TR TR TH VALIGN=top ALIGN=LEFTContent SubType:/TH TD#File.ContentSubType#/TD TH VALIGN=top ALIGN=LEFTClient Path:/TH TD#File.ClientDirectory#/TD /TR TR TH VALIGN=top ALIGN=LEFTClient File:/THTD#File.ClientFile#/TD TH VALIGN=top ALIGN=LEFTClient FileName:/THTD#File.ClientFileName#/TD /TR TR TH VALIGN=top ALIGN=LEFTClient FileExt:/THTD#File.ClientFileExt#/TD TH VALIGN=top ALIGN=LEFTServer Path:/THTD#File.ServerDirectory#/TD /TR TR TH VALIGN=top ALIGN=LEFTServer File:/THTD#File.ServerFile#/TD TH VALIGN=top ALIGN=LEFTServer FileName:/THTD#File.ServerFileName#/TD /TR TR TH VALIGN=top ALIGN=LEFTServer FileExt:/THTD#File.ServerFileExt#/TD TH VALIGN=top ALIGN=LEFTAttempted ServerFile:/THTD#File.AttemptedServerFile#/TD /TR TR TH VALIGN=top ALIGN=LEFTFile Existed?/THTD#File.FileExisted#/TD TH VALIGN=top ALIGN=LEFTFile Was Saved?/THTD#File.FileWasSaved#/TD /TR TR TH VALIGN=top ALIGN=LEFTFile Was Overwritten?/THTD#File.FileWasOverWritten#/TD TH VALIGN=top ALIGN=LEFTFile Was Appended?/THTD#File.FileWasAppended#/TD /TR TR TH VALIGN=top ALIGN