I do not think that is possble. That would mean you could access the
clients
machine which is a security issue.

You will probably only be able to do it at the server level or use
some
JS code that is triggered onSubmit to check the extension of the file
to see if it is XLS or something.

Someone might have code already for this... 



>>> [EMAIL PROTECTED] 07/07/03 12:09PM >>>
Can anyone tell me if I can filter the input on a CFFILE input screen?
I
know I can filter what the server will accept, and throw an error, but
I
would like to prevent users from even attempting to upload anything
but
an Excel file if possible.

In other words, when the user clicks the button to browse their own
computer for the file that they want to upload, I want it to only
display the .XLS files, instead of ALL files.

Apparently the following code does not achieve this:

<input type="file" name="filetoupload" size="75"
accept="application/msexcel">

Thanks in advance!


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please delete.
it.
Thank you,
ViaHealth

**********************************************************************


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to