| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: ASP FTP Store Not working |
| User652 Posts: 2 Member Since: 07/02/01 |
posted July 2, 2001 12:24 PM I have created a script to ftp files from the hard drive of a machine to a server. When I use the 'store' method the object I selected (using an HTML File Field) is created on the server but always at zero bytes. Any ideas? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted July 2, 2001 12:55 PM It sounds like there may be a problem with the name specified for the file. What happens if you hardcode the name in the script? For example, does the following work after changing the variables' values? -ken <% dim ftp dim host dim user dim pass dim file dim localPath set ftp = Server.CreateObject ("Dart.Ftp.1") host = "" user = "" pass = "" localPath = "c:\Test\" file = "file.txt" ftp.Login host, user, pass ftp.Store file, localpath & file ftp.Logout Response.Write "Done." %> |
| User652 Posts: 2 Member Since: 07/02/01 |
posted July 3, 2001 3:38 AM No. The contents of the text file would have changed from 'Hello World' to "c:\test\file.txt". I think I know whats wrong. If the script is running on a web server, when I enter a path of c:\test\file.txt isn't that looking for the file on the servers hard drive rather than on my PC's? If this is the case is there any way to achive ftp from my PC to the server running ASP on the server or do I have to do this in VB? LBH |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted July 3, 2001 11:13 AM Indeed it is. You would have to somehow transfer the file to the machine running the script first. -ken K M Drake Dart Tech Support |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|