Not sure I'm understanding the problem. 
Are you saying that when the File selector window appears, you can only
select *.txt files?
If that's the case, then simply change your file type box (mine defaults to
HTML files).

But, this sounds too obvious, so I'm guessing I'm not understanding the
question.
In our case, we are able to upload ANY file type with a similar form to what
you have shown.  
Maybe look at your processing page (with the CFFile tag), and see what it is
doing??

My two cents.

Shawn Grover

-----Original Message-----
From: Yager, Brian T Contractor/NCCIM
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 11:47 AM
To: CF-Talk
Subject: RE: File upload question


What are you trying to do with the file Phill?  I have done this using a
variety
of different extension (jpg, gif, doc, html, etc..).

Brian Yager
President - North AL Cold Fusion Users Group
Sr. Systems Analyst
NCCIM/CIC
[EMAIL PROTECTED]
(256) 842-8342


-----Original Message-----
From: Phill Gibson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 12: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

Reply via email to