Re: Inet1 connecting but can't upload - any help appreciated



Nevermind. It looks like Send and Put are interchangeable with FTP.

Have you tried just using the filename for the Destination?




"Matt Williamson" <ih8spam@xxxxxxxxxxx> wrote in message
news:OZiNt92cGHA.3632@xxxxxxxxxxxxxxxxxxxxxxx
Alan-

Put is an HTTP command. Use Send for FTP.

HTH

Matt


"Alan" <alanlaird@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:44608f9d$1@xxxxxxxxxxxxxxxxxxxxxxxx
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
---------






.



Relevant Pages

  • Re: Publisher and 1&1
    ... change the FTP proxy settings to allow access ... To use Publisher read the following article: ... I do that the destination menu greys out. ... 1&1 is not really clear about how and where to upload your files. ...
    (microsoft.public.publisher.webdesign)
  • Problem with URI type
    ... I've been trying out the ftp upload functionnalities of the ... I've been able to upload a file to my destination server but I've been ... And I want to upload the file to: /tmp on the destination machine I ... tried to specify the destination path as: ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Uploading files to FTP via dialog
    ... Erwin Moller wrote: ... Currently I just have it so that the user needs to upload the ... image himself to the FTP, ... only the filename AND the file. ...
    (php.general)
  • Re: Uploading files to FTP via dialog
    ... Currently I just have it so that the user needs to upload the ... image himself to the FTP, ... My problem is that after selecting a file from the local computer (e.g. ... only the filename AND the file. ...
    (php.general)
  • Re: which text edito should I use for C file
    ... I created the script below to upload to FTP. ... ftp fingolfin < $FILENAME || echo FTP PUT failed! ...
    (comp.os.minix)