Set object = doc.GetAttachment( "upload.zip" )
With objFTP
.Connect "ftp.gaseador.com", "login", "pass", 0
If objFTP.IsConnected Then
Print "CONNECTED!"
.ChangeDirectory "Intranet"
Print .CurrentDirectory
End If
.PutFile object.Name , object.Name , FTP_TRANSFER_TYPE_ASCII
.Disconnect
End With
But On Web I get this message … "Could not upload file to host. "
Your problem here is that you’re trying to upload an attachment from a document directly to a FTP server. You can’t do that. You need to save the attachment to disk, and then upload to FTP from disk. When the upload has finished, you can delete the file from disk.