Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
Often Misused: file upload error
paresh gugale
Jul 1 2015 2:39 AM
3.6k
Reply
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();
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Where did my Article is?
Risk Analysis in Software Testing ?