asp file upload question
am 24.04.2007 13:51:53 von will.smothers
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
Re: asp file upload question
am 24.04.2007 18:28:56 von Jon Paal
just google
ASP.NET upload
you'll find many examples of uploading files using vb.net coding
wrote in message news:1177415513.480248.13650@t39g2000prd.googlegroups.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
>
Re: asp file upload question
am 25.04.2007 08:12:33 von info
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
will.smothers@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