TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
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
Forums
Monthly Leaders
Forum guidelines
Deepak Rai
NA
45
9.1k
Save image in folder using "Server.MapPath".
Jun 22 2018 4:31 AM
Hello,
I want to save image directly in my application folder "imz/entertainmentz/" i searched a code and applied it in my application it works for my local machine. But when i publish it in remote server it can't save the image in same path.
Here is my code:
string filePath = ppUpload.PostedFile.FileName;
ppUpload.SaveAs(Server.MapPath("~/imz/Entertainmentz/" + filePath));
Reply
Answers (
6
)
validation for email-id,login-id,password
ASP .NET CORE on VS 2017 Community