In the ACCEPT attribute of the <CFFILE> you can specify varoius mime types
to upload for example:
<CFFILE ACTION="Upload"
FILEFIELD="formfield"
DESTINATION="full_path_name"
NAMECONFLICT="behavior"
ACCEPT="mime_type/file_type"
MODE="permission"
ATTRIBUTES="file_attributes">
So if you need to upload several different mime types use:
ACCEPT="gif,jpg,ppt,doc,dot,pdf,xls,htm,html"
for example.
HTH
-- Mike
Michael Goodwin
Project Manager
Databuilt, L.L.C.
4720 Salisbury Road,
Suite 213
Jacksonville, FL 32256
(904)493-6157 tel
(904)535-DATA mobile
(904)493-6084 fax
www.databuilt.net
AN E-BUSINESS SOLUTION PROVIDER
-----Original Message-----
From: Phill Gibson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 1:35 PM
To: CF-Talk
Subject: File upload question
Hi everyone,
I'm doing a file upload using standard HTML with the following form:
<form name="upload" action="processUpload.cfm" method="post"
enctype="multipart/form-data">
<input type="file" name="file2Upload" size="40"><br>
<input type="submit" value="Upload This File">
</form>
but it only reads the file contents if the file has a ".txt" extension. I
can rename an ASCII file from a different extension to .txt, and it works.
Does anyone know how to specify a file extension other than .txt and have it
work?
Thanks,
Phill Gibson
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists