By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,806 Members | 1,465 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,806 IT Pros & Developers. It's quick & easy.

File upload errors when exe on Input type = file control

P: n/a
When I use the file upload control <input type = file> and try to upload an
exe file it errors, how do i get it to allow exe file uploads so I can
display a frendly warrning message about they might be dangerous? thanks!
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Brian,

From your description, you got some certain error when uploading "exe" file
using the HtmlInputFile control in asp.net web application ,yes?

As far as I know, there is no buildin checking on the uploading file's type
in asp.net and generally we need to provide our checking code, such as
client validaiton script code, here is a tech article which has mentioned
this:

#Uploading Files Using the File Field Control
http://msdn.microsoft.com/library/en...eupload.asp?fr
ame=true#aspnet-fileupload_topic2c

and as for the error you get, would you provide some detailed information
on it ? Thanks.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.