I am using the below code to upload some text files, if the file has an .csv
extension is will fail the test and get the error, if I just rename the same
file with no extension it works ok. I though the accept="text/plain" looks
at the file contents not the extension. Any recommendations on how to get
around this?
Thanks,Adrian
<cftry>
<CFFILE ACTION="UPLOAD" filefield="filename" destination="G:\blah\"
nameconflict="ERROR" accept="text/plain">
<CFFILE ACTION="RENAME" source="G:\blah\#File.ServerFile#"
destination="G:\blah\blah.#currentdate#.#currenttime#">
<cfcatch type="Any">
<cfset success = false>
The File Cold NOT Be Uploaded.
Make Sure The File You Are Uploading Is In A Plain Text Format.
</cfcatch>
</cftry>
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.