Solved

Uploading files From Asp.net web site

Posted on 2013-11-08
1
315 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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
Easy filter aspnet 2 36
How can I do Unit Testing with Session ? 1 23
Add Combobox column to datagridview using vb.net 2 29
Aspx calendar pop up control 3 29
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

696 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