Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

How to upload a file to 2 FTP sites without an upload component for company

Question posted by: Laphan (Guest) on July 26th, 2008 03:25 PM
Hi All

I can't get round this because it's a local government thing, but I've done
a CMS for a school (in ASP classic) that allows them to upload gifs, jpgs,
pdfs and docs to their site for the usual CMS stuff.

Works fine on my host as I use ASPupload and I have one FTP location for my
data, but I've now found out that I've got to put the site on the local
government's servers and they only provide the following setup:

1) No ASP components such as ASPupload. They say I can do it in ASP.net as
standard, but they can't give me any example code on how to do this!!! Any
ideas bearing in mind that I upload the file and then update an SQL DB with
the file info?

2) They have 2 FTP locations for 1 site (no mirroring) so a user normally
uploads the same content to 2 locations. This is no good for me as it's
50/50 as to whether the user uploads the file via my CMS to FTP site 1 or 2
and then 50/50 as to whether the visitor sees the content from FTP site 1 or
2. I cannot get them to alter this setup, even though I think it is crap,
so do you know of a way where I can upload the file to these 2 locations
simultaneously???

Thanks



Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
Adrienne Boswell's Avatar
Adrienne Boswell
Guest
n/a Posts
July 27th, 2008
04:15 AM
#2

Re: How to upload a file to 2 FTP sites without an upload component for company
Gazing into my crystal ball I observed "Laphan" <please@dont.spam.com>
writing in news:1dOdnXPy2akR3BbVnZ2dnUVZ8sXinZ2d@posted.metro net:
Quote:
Originally Posted by
Hi All
>
I can't get round this because it's a local government thing, but I've
done a CMS for a school (in ASP classic) that allows them to upload
gifs, jpgs, pdfs and docs to their site for the usual CMS stuff.
>
Works fine on my host as I use ASPupload and I have one FTP location
for my data, but I've now found out that I've got to put the site on
the local government's servers and they only provide the following
setup:
>
1) No ASP components such as ASPupload. They say I can do it in
ASP.net as standard, but they can't give me any example code on how to
do this!!! Any ideas bearing in mind that I upload the file and then
update an SQL DB with the file info?
>
2) They have 2 FTP locations for 1 site (no mirroring) so a user
normally uploads the same content to 2 locations. This is no good for
me as it's 50/50 as to whether the user uploads the file via my CMS to
FTP site 1 or 2 and then 50/50 as to whether the visitor sees the
content from FTP site 1 or 2. I cannot get them to alter this setup,
even though I think it is crap, so do you know of a way where I can
upload the file to these 2 locations simultaneously???
>
Thanks
>
>
>
>


You can FTP without a component -
http://benmeg.com/code/asp/ftp.asp.html - I use this at work all the
time, saves me from having to upload the files using a component. I
just have to put in the name of the image, or other file, then ftp it
up.

You can also upload without a component -
http://benmeg.com/code/asp/ftp.asp.html
I have used this as well, and it works fine.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


MikeR's Avatar
MikeR
Guest
n/a Posts
July 27th, 2008
12:15 PM
#3

Re: How to upload a file to 2 FTP sites without an upload component for company
Adrienne Boswell wrote:
Quote:
Originally Posted by
You can FTP without a component -
http://benmeg.com/code/asp/ftp.asp.html - I use this at work all the
time, saves me from having to upload the files using a component. I
just have to put in the name of the image, or other file, then ftp it
up.
>
You can also upload without a component -
http://benmeg.com/code/asp/ftp.asp.html
I have used this as well, and it works fine.

Adrienne -
The same link twice.
Mike

Adrienne Boswell's Avatar
Adrienne Boswell
Guest
n/a Posts
July 27th, 2008
03:45 PM
#4

Re: How to upload a file to 2 FTP sites without an upload component for company
Gazing into my crystal ball I observed MikeR <nf4lNoSpam@pobox.com>
writing in news:elmSIG#7IHA.3480@TK2MSFTNGP03.phx.gbl:
Quote:
Originally Posted by
Adrienne Boswell wrote:
Quote:
Originally Posted by
>You can FTP without a component -
>http://benmeg.com/code/asp/ftp.asp.html - I use this at work all the
>time, saves me from having to upload the files using a component. I
>just have to put in the name of the image, or other file, then ftp it
>up.
>>
>You can also upload without a component -
>http://benmeg.com/code/asp/ftp.asp.html
>I have used this as well, and it works fine.

Adrienne -
The same link twice.
Mike
>


I hate that when that happens - here's the other url:
http://www.asp101.com/articles/jacob/scriptupload.asp

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


MikeR's Avatar
MikeR
Guest
n/a Posts
July 28th, 2008
01:35 PM
#5

Re: How to upload a file to 2 FTP sites without an upload component for company
Adrienne Boswell wrote:
Quote:
Originally Posted by
I hate that when that happens - here's the other url:
http://www.asp101.com/articles/jacob/scriptupload.asp
>

Thanx!

Daniel Crichton's Avatar
Daniel Crichton
Guest
n/a Posts
July 29th, 2008
03:45 PM
#6

Re: How to upload a file to 2 FTP sites without an upload component for company
MikeR wrote on Mon, 28 Jul 2008 09:23:51 -0400:
Quote:
Originally Posted by
Adrienne Boswell wrote:
Quote:
Originally Posted by
>I hate that when that happens - here's the other url:
>http://www.asp101.com/articles/jacob/scriptupload.asp

Quote:
Originally Posted by
Thanx!


Also look at http://www.motobit.com/help/scptutl/pure-asp-upload.htm ; I've
used this on a few sites and it works really well.

--
Dan



MikeR's Avatar
MikeR
Guest
n/a Posts
July 30th, 2008
02:05 PM
#7

Re: How to upload a file to 2 FTP sites without an upload component for company
Daniel Crichton wrote:
Quote:
Originally Posted by
Also look at http://www.motobit.com/help/scptutl/pure-asp-upload.htm ; I've
used this on a few sites and it works really well.

Thanx!

 
Not the answer you were looking for? Post your question . . .
182,319 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors