Click to See Complete Forum and Search --> : Internet Transfer Control converts chars to uppercase
Hi!
I'm having troubles sending files with the internet transfer control. It converts everything to uppercase, so if I try to send a file with
inet.execute ,"PUT c:\myfile.txt /mydir/myfile.txt"
it tries to store it as
/MYDIR/MYFILE.TXT
Since the ftp server is case sensitive, and /MYDIR doesn't exist (/mydir does), I get the following error:
12003 : 200 Type set to I.
200 PORT command successful.
553 /MYDIR/MYFILE.TXT: No such file or directory.
Any help?
Regards...
Although the error is in caps, that does not necessarily mean that it's telling you there's a case-sensitive issue. If what you've put in the post is correct, it should work from command line, so try it out. Type in exactly what you want the Inet control to do but do it manually from a command line and make sure that YOU can at least ftp the files manually. If you are unable to, most likely the control will not be able to as well. The inet control is not changing the case on your input, you also may need to exclude the first forward slash "/" of the path. No offense, but if you're not familiar with command line ftp operation, click on start and select Run. On the run line type in ftp ftp.yourserver.com and hit enter, you should be prompted for you username followed by password. Enter these and the you'll be left at an FTP prompt. If you don't know any commands, type in a question mark all by itself and hit enter and all of the ftp commands will pop up. From the FTP> prompt you should be able to type in what you wanted the inet control to do which was,
PUT c:\myfile.txt /mydir/myfile.txt
if this is successful, and I think it may not be, then something else is going on with your syntax. Give a try anyway.
Although the error is in caps, that does not necessarily mean that it's telling you there's a case-sensitive issue. If what you've put in the post is correct, it should work from command line, so try it out. Type in exactly what you want the Inet control to do but do it manually from a command line and make sure that YOU can at least ftp the files manually. If you are unable to, most likely the control will not be able to as well. The inet control is not changing the case on your input, you also may need to exclude the first forward slash "/" of the path.
I'm using Xitami Web & FTP server for my testing. I made lots of tries in local mode, and I'm right: the Inet control is case insensitive, and in FTP mode converts verything to uppercase.
No offense, but if you're not familiar with command line ftp operation, click on start and select Run. On the run line type in ftp ftp.yourserver.com and hit enter, you should be prompted for you username followed by password. Enter these and the you'll be left at an FTP prompt. If you don't know any commands, type in a question mark all by itself and hit enter and all of the ftp commands will pop up. From the FTP> prompt you should be able to type in what you wanted the inet control to do which was,
PUT c:\myfile.txt /mydir/myfile.txt
if this is successful, and I think it may not be, then something else is going on with your syntax. Give a try anyway.
That was the 1st thing I tried. :)
I finally solved it using:
--cut--cut--cut--cut--cut--cut--cut--cut--cut--cut--
DevPower FTP ActiveX Control
Copyright (c) 1999 Steve Robbins
http://ftp.devpower.com
Thank you for using this FREE ActiveX control.
--cut--cut--cut--cut--cut--cut--cut--cut--cut--cut--
Nice OCX. :) Give a look.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.