Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Uploading files From Asp.net web site

Posted on 2013-11-08
1
Medium Priority
?
330 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 1060 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Integration Management Part 2
Suggested Courses

972 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