Actually, yes, I am treating it like a variable. I'm not saving the file to
the server, but instead am just grabbing the string contained in it. No need
to save the file itself after I have the contents. Our clients have a lot of
legacy files that have been uploaded in the client/server app in times past,
so we need to also allow for file uploads, so to speak, rather than just
having a form field to cut and paste strings into.
Thanks,
Phill Gibson
[EMAIL PROTECTED]
>-----Original Message-----
>From: Dave Watts [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, August 08, 2001 1:06 PM
>To: '[EMAIL PROTECTED]'
>Cc: 'Phill Gibson '
>Subject: RE: File upload question
>
>
>> I'm doing a file upload using standard HTML with the following 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?
>
>What are you doing with the uploaded file? It sounds like you're simply
>treating it like you would any other form variable. Typically, you use
>CFFILE to save the uploaded file to the filesystem.
>
>Dave Watts, CTO, Fig Leaf Software
>http://www.figleaf.com/
>phone: (202) 797-5496
>fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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