Solved

Uploading files From Asp.net web site

Posted on 2013-11-08
1
303 Views
Last Modified: 2013-11-13
I have a asp.net site and which has options to upload pictures and documents.
User can upload any number of pictures or documents.

Till now I have folder called Uploaded inside my Asp.net project which stores all these files.
But now as the files are getting more and more, my client said he wants to use a different drive on the same server to store all uploaded files. For ex:   D:\Uploads.

Now, in the site I have used relative paths to show images or document because till now the upload folder was inside the project.

I need to know is it possible that use a folder which is not inside the project or ISS boundary.
Also, Do I need to change all the relative paths to absolute path now or any work around is there ?

I am using VS 2012
0
Comment
Question by:yadavdep
1 Comment
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 265 total points
ID: 39633520
You should be able to create a virtual directory for you site, in IIS Admin, that points to the folder on the new server. If the VDir is at the same level in your site as the current physical folder, then you shouldn't need to modify your code at all.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now