Inet1 connecting but can't upload - any help appreciated
- From: "Alan" <alanlaird@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 09 May 2006 12:48:30 GMT
Hi
I am using the Inet control to link to our web server. I can get the
control to display the directory structure and change directories so I know
it is connecting properly. But I can't get it to GET or PUT files to the
server. I cannot determine why.
I can upload and download files using MS FrontPage without any trouble.
I have checked the Properties of the destination folder. I was hoping to
see if it was write protected but all I can view is:
Allow scripts to be run
Allow files to be browsed
Allow anonymous uploads to this directory
Allow uploaded files to overwrite existing filenames
I have tried various combinations of these four options but to no avail.
I have spent more than a day on this and it is becoming very frustrating.
Any help would be appreciated.
The code I am using is:
Inet1.AccessType = icUseDefault
Inet1.URL = "ftp://XXXXXXXX"
Inet1.UserName = "xxxxxxx"
Inet1.Password = 'yyyyyyy"
Dim strSourceFile As String
Dim strDestinationFile As String
strSourceFile = "C:\Documents and Settings\Alan\Desktop\FileToUpload.txt"
strDestinationFile = "FTP://XXXXXXX/FileToUpload.txt
Inet1.Execute , "PUT " & strSourceFile & " " & strDestinationFile
Do While Inet1.StillExecuting
DoEvents
Loop
Thanks...Alan
---------
.
- Follow-Ups:
- Re: Inet1 connecting but can't upload - any help appreciated
- From: Matt Williamson
- Re: Inet1 connecting but can't upload - any help appreciated
- Prev by Date: Re: It's All About Trust
- Next by Date: Re: How to iterate files using FSO?
- Previous by thread: simplest way to record from mic to .wav?
- Next by thread: Re: Inet1 connecting but can't upload - any help appreciated
- Index(es):
Relevant Pages
|
Loading