Andy Evans comment is correct.
Consider the URI: http://ftp.myserver.com/../
. ..
means "take me to the parent directory". But no parent! Therefore, when you get the absolute URL, you will end with http://ftp.myserver.com/
The parser cannot do anything else.
I think the problem is with setting up your FTP server. I assume the directory structure looks something like this:
ftproot upload download
It looks like the FTP service automatically registers you with /ftproot/download
. That is, the ftp.myserver.com
URI maps to /ftproot/download
on the local file system. If so, then no amount of messing with the URI will take you anywhere. If the root of the URI maps to the boot directory, you cannot, using the syntax ..
, "go up one level and then down."
Can I upload using an FTP client such as Filezilla, or perhaps a Windows FTP command-line tool? If so, what are the steps you are taking to do this? Can you make your code the same way?
Jim mischel
source share