Uploading files via a virtual directory

J

Joel Zinn

I am having to change several websites that upload files. Our web master
has changed the replication tool and that is causing a problem. We have
been using the normal httpInputFile object. It works great, as long as you
have a direct path ("c:\temp\uploads"), but it does not work well with
virtual paths (http:\\AppName\Uploads). The problem is that the physical
folder is not under the root app path, it has to be in another physical
location to replicate properly. We can set up the virtual directory to view
the files, but the uploads return an error about URI formats not supported,
when I try in the PostedFile.SaveAs.

Anyone have any experience with a problem like this?
 
K

Kevin Spencer

One is a file path. One is a URL. You can only save files to file paths or
UNCs.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top