Solved

Uploading files From Asp.net web site

Posted on 2013-11-08
1
313 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

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

Suggested Solutions

Title # Comments Views Activity
location of a form 2 25
Create a datatable in vb.net dynamically 1 22
VB.Net - String Manipulation Scenario 2 25
reading excel file in .net 2 15
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

839 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