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
Mark Tabor
589
2k
460k
File Upload Path in ASP.NET hosted Application
May 29 2016 6:56 AM
I have a web application in which i am saving files into the directory placed onto the root folder of my application , it works fine locally but when i hosting the application into the hosting environment it is not saving my file , locally i have save a filePath into the web.config like that
<add key="FilePath" value="~/Uploads/" />
and i was accessing it using that statement
Dim FilePath As String = ConfigurationManager.AppSettings("FilePath").ToString
How to achieve that on hosting server i have already tried
HttpContext.Current.Server.MapPath("~/Uploads/")
as well as
Server.MapPath("~/Uploads/") but it shows the local path address of my directory hierarchy .
Thanks in advance
Reply
Answers (
3
)
asp.net MVC How to retrieve the selected radiobutton value
AJax calls not working in mvc