473,382 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Problem saving files.

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?

--
Joel Zinn
Sr IT Architect
American Electric Power
Nov 18 '05 #1
1 1216
Hi Joel,

I'm going to guess your problem is one of permissions? Are you actually
getting to the 'upload' folder?

If you end up with an external path I would use some sort of config settings
to control where that path sits. The main thing you need to worry about is
that the Web Account has rights to write the file into htis upload
directory. This means ASPNET or NETWORK SERVICE usually...

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web
"Joel Zinn" <jw****@aep.com> wrote in message
news:un**************@TK2MSFTNGP09.phx.gbl...
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?

--
Joel Zinn
Sr IT Architect
American Electric Power

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Zaan | last post by:
www.entropy.ch release for Mac OS X.] Hello, My issue is the following: to promote consistency on a site I'm building, I decided to go for a php scheme where some recurring elements...
0
by: mchl gdbt | last post by:
Hi, I have several thousand tiffs generated by application A which are read by application B. I need to remove a few colours from the tiffs and I decided to try with the python imaging library....
12
by: annoyedtuna | last post by:
I'm having nightmares with CSS at the moment. Can anyone help me out? I'm including my stylesheet using the following code <head> <title>My Title.</title> <link rel="stylesheet"...
1
by: Alfons | last post by:
Hello, I have build a program that can do file transferring between a Windows XP computer and a DOS computer via a serial port. The Windows program I have build in C++ with Visual Studio 6.0....
13
by: Bob Darlington | last post by:
I have a repair and backup database routine which runs when a user closes down my application. It works fine in my development machine, but breaks on a client's at the following line: If...
5
by: IkBenHet | last post by:
Hello, I use this script to upload image files to a folder on a IIS6 server: ******************* START UPLOAD.ASPX FILE ********************** <%@ Page Language="VB" Debug="true" %>
1
by: M Keeton | last post by:
I currently have a picture which is stored in a "System.Drawing.Image" variable and I want to save it as a bitmap file. I have tried 2 different approaches and both give me the following error: ...
7
by: Nathan Sokalski | last post by:
I am having a problem saving an image with the same name it originally had. I have two similar versions of my code, one in which I close the FileStream used to open the original image before saving,...
4
by: Pedro Leite | last post by:
Good Afternoon. the code below is properly retreiving binary data from a database and saving it. but instead of saving at client machine is saving at the server machine. what is wrong with my...
1
by: rajeev ranjan | last post by:
Hi to all, I am facing a problem.i have two server for my application. on one i m hosting my web site and on other my database. Through user interface, user can upload the files. Now i want to save...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.