FTP download err 550 ?

rfresh

Well-Known Member
Licensed User
Longtime User
I'm getting an FTP download err "550 Can't open home/website/folder_html/remote/remote.txt: No such file or directory".

The folder (remote) and file (remote.txt) is there. I don't know why it can't find it?

Thanks...
 
Last edited:

rfresh

Well-Known Member
Licensed User
Longtime User
I got it to work. The trick was to specify the full path this way:

/folder_html/remote/remote.txt
 
Upvote 0

Melghost

Member
Licensed User
Longtime User
I've spent all the day with the same issue, because I haven't been able to find this post before.

All examples include the slash at the beginning of the path! I can´t believe nobody noticed this!

Just for the next ones: The right way to write the FTP path is as follows:

B4X:
        FTP1.Initialize("FTP1","address.com",21,"user","password")
FTP1.DownloadFile("folder/ImageFile.jpg",False,File.DirRootExternal,"ImageFile.jpg")

It's an example for this address: ftp://address.com/folder/ImageFile.jpg (as it shows on several browsers)

So remember:
1- You have to omit "ftp://"
2- You have to omit the starting slash.
 
Upvote 0
Top