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

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 4913
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

32
by: Ray at | last post by:
I despise installing third party software on my workstations or servers. It is for this reason that I use componentless-upload for file uploads. This is no longer an option, and I have to...
5
by: Brian M | last post by:
Windows 2000 Server running IIS. I followed the instructions in this article, building the COM+ component and registering it, and creating the two asp files - Upload.asp and Postfile.asp. The...
2
by: SU_Oran | last post by:
I found this when searching. I need to have a simple script that will upload a single file. It is giving me an error on Set upl = Server.CreateObject("ASPSimpleUpload.Upload") It is saying : ...
10
by: Alphonse Giambrone | last post by:
I am trying to develop a web service to accept a file uploaded via http post from a vba (Access) application. Thanks to helpful links in a vb newsgroup and my previous work with WinInet api I was...
10
by: erin.sebastian | last post by:
Hello Everyone, I have code that uploads files in asp. It seems to be working however on files > 200kb it bombs and i don't know why. Does anyone have any idea of why this would occur and what i...
3
by: Mike Kelly | last post by:
Hi. I've built a page using standard ASP.NET 2.0 features and when I upload a large file (>20MB) to our intranet server, I get a paltry 100KB/s on our 100Mb/s LAN. Simply copying the file, I get...
1
by: hardik | last post by:
can anyone tell me how i can change the filename which is going to uploaded here is a code for uploading a file <!-- #include file="clsUpload.asp" --> Set objUpload = New clsUpload If...
3
by: shapper | last post by:
Hello, I need to upload a file. Can I only do this with the File Upload control? I also need the following: - Send upload info, upload percentage, continuously to a JavaScript function so...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.