473,396 Members | 1,998 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,396 software developers and data experts.

asp file upload question

All,
I have two Windows Server 2003 boxes running IIS 6.0 webservers that
host our proxy pac file. These two servers are behind a network load-
balancer and house our corporation's Proxy PAC file. I am working on
developing an ASP-based file upload solution for our Proxy team so
that when they make a change to the PAC file, they simply have to go
to this upload site, browse for the new PAC file on their system and
then upload it to the web server.

What I am wanting the ASP-based file upload solution to do is the
following:

1) Allow them to browse for a file to upload from their system.
2) See if the file name already exists on the server, if it does,
rename the file currently on the server to:
%filename%ddmmyyyy.old
3) Do both of these things to both servers simaltanously.

Additionally, I do not want to use anything like SA-FileUp or
commercial solution for this. I know with ASP.NET and VB / VBS there
has to be a way to do this but I cannot find any examples of how to do
this.

Now, additionally, I have very good HTML skills but I am rather
lacking in ASP coding skills so any examples that you would like to
include in your posts would be greatly appreciated!

Thanks in advance,
Will Smothers, MCSE

Apr 24 '07 #1
2 4236
just google

ASP.NET upload

you'll find many examples of uploading files using vb.net coding

<wi***********@gmail.comwrote in message news:11*********************@t39g2000prd.googlegro ups.com...
All,
I have two Windows Server 2003 boxes running IIS 6.0 webservers that
host our proxy pac file. These two servers are behind a network load-
balancer and house our corporation's Proxy PAC file. I am working on
developing an ASP-based file upload solution for our Proxy team so
that when they make a change to the PAC file, they simply have to go
to this upload site, browse for the new PAC file on their system and
then upload it to the web server.

What I am wanting the ASP-based file upload solution to do is the
following:

1) Allow them to browse for a file to upload from their system.
2) See if the file name already exists on the server, if it does,
rename the file currently on the server to:
%filename%ddmmyyyy.old
3) Do both of these things to both servers simaltanously.

Additionally, I do not want to use anything like SA-FileUp or
commercial solution for this. I know with ASP.NET and VB / VBS there
has to be a way to do this but I cannot find any examples of how to do
this.

Now, additionally, I have very good HTML skills but I am rather
lacking in ASP coding skills so any examples that you would like to
include in your posts would be greatly appreciated!

Thanks in advance,
Will Smothers, MCSE

Apr 24 '07 #2
Take a look at PureASP upload, http://www.motobit.com/help/scptutl/pure-asp-upload.htm.
you can
1) upload file to server with ASP using IE/Firefox
2) Check the existence of file on server (see Upload-Unique-names.asp)
using filesystem object and rename the old file if exists
3) You can do it also remotelly, if the ASP user has access to disk on
both servers.

Antonin

wi***********@gmail.com napsal:
All,
I have two Windows Server 2003 boxes running IIS 6.0 webservers that
host our proxy pac file. These two servers are behind a network load-
balancer and house our corporation's Proxy PAC file. I am working on
developing an ASP-based file upload solution for our Proxy team so
that when they make a change to the PAC file, they simply have to go
to this upload site, browse for the new PAC file on their system and
then upload it to the web server.

What I am wanting the ASP-based file upload solution to do is the
following:

1) Allow them to browse for a file to upload from their system.
2) See if the file name already exists on the server, if it does,
rename the file currently on the server to:
%filename%ddmmyyyy.old
3) Do both of these things to both servers simaltanously.

Additionally, I do not want to use anything like SA-FileUp or
commercial solution for this. I know with ASP.NET and VB / VBS there
has to be a way to do this but I cannot find any examples of how to do
this.

Now, additionally, I have very good HTML skills but I am rather
lacking in ASP coding skills so any examples that you would like to
include in your posts would be greatly appreciated!

Thanks in advance,
Will Smothers, MCSE
Apr 25 '07 #3

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

Similar topics

6
by: Mosher | last post by:
Hi all, this might be more of an html question but I think it can be done in PHP, so I will ask here. I have an html form that allows for .pdf file uploads. This script will serve two functions...
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
6
by: tshad | last post by:
I have an upload file input as: <input id="MyFile" style="width:300px" type="File" runat="Server"> This works fine, but I find that if my page doesn't pass validation during postback, the page...
4
by: Matt Jensen | last post by:
Howdy I've got a rather strange issue occuring. I used forms based .NET authentication, although I'm also setting some session variables when people login. However, I've found when people use...
1
by: joshbeall | last post by:
Hi All, If I drop a form onto my page that allows file uploads, I know well enough how to handle the file upload in the server side via PHP. However, I have a question: when my browser...
9
by: CGW | last post by:
I asked the question yesterday, but know better how to ask it, today: I'm trying to use the File.Copy method to copy a file from a client to server (.Net web app under IIS ). It looks to me that...
7
by: pbd22 | last post by:
hi. i am having probs understanding how to grab a file being uploaded from a remote client. i am using hidden input fields for upload such as: <input id="my_file_element" type="file"...
1
by: lPrentice | last post by:
Hello, After all this time, Linux file permissions still confuse me at times. I have a Python web-based application with an file (images) upload module. The application is running on two remote...
12
by: GuangXiN | last post by:
I want the file upload element disappear, instead of it, I place a text box and a button with my own css defination. but it doesn't work on IE7. What should I do now? <form action="upload.php"...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.