10 TIPs - To Become a Good Developer/Programmer
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
paresh gugale
2.1k
43
47.7k
Often Misused: file upload error
Jul 1 2015 2:39 AM
I was created site in asp.net.
In that i will upload some file using fileupload control it works fine . But at the time of security audit it gives error
as often misused file upload. Please give the solution.
Code Snippet :
string filename = Path.GetFileName(FileUpload1.PostedFile.FileName);
FileUpload1.SaveAs(Server.MapPath("foldername/" + filename));
con.Open();
Reply
Answers (
4
)
Bind Multiple Column in DropDownlist Through Html
3 Levels Expand and collapse view dynamically in angularjs