469,588 Members | 2,766 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,588 developers. It's quick & easy.

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

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

Jul 26 '08 #1
6 4652
Gazing into my crystal ball I observed "Laphan" <pl****@dont.spam.com>
writing in news:1d******************************@posted.metro net:
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

Jul 27 '08 #2
Adrienne Boswell wrote:
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
Jul 27 '08 #3
Gazing into my crystal ball I observed MikeR <nf********@pobox.com>
writing in news:el**************@TK2MSFTNGP03.phx.gbl:
Adrienne Boswell wrote:
>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

Jul 27 '08 #4
Adrienne Boswell wrote:
I hate that when that happens - here's the other url:
http://www.asp101.com/articles/jacob/scriptupload.asp
Thanx!
Jul 28 '08 #5
MikeR wrote on Mon, 28 Jul 2008 09:23:51 -0400:
Adrienne Boswell wrote:
>I hate that when that happens - here's the other url:
http://www.asp101.com/articles/jacob/scriptupload.asp
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
Jul 29 '08 #6
Daniel Crichton wrote:
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!
Jul 30 '08 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

32 posts views Thread by Ray at | last post: by
2 posts views Thread by SU_Oran | last post: by
10 posts views Thread by Alphonse Giambrone | last post: by
10 posts views Thread by erin.sebastian | last post: by
3 posts views Thread by Mike Kelly | last post: by
3 posts views Thread by shapper | last post: by
12 posts views Thread by GuangXiN | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.