Solved

Uploading files From Asp.net web site

Posted on 2013-11-08
1
319 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

729 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