Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
how we make extensection of images to uplode in mvc
habib ullah
7y
166
1
Reply
if (file != null && file.ContentLength > 0)
{
var allowedExtensions = new[] { ".png", ".jpeg", ".jpg" };
file.SaveAs(Server.MapPath("~/images/") + file.FileName);
emp.imag = file.FileName;
}
is not working and not show the extension in the images
Attachment:
New_Text_Document_(3).zip
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
search option not working in nested gridview, differen table
error while hosting the website