Home Forums ActiveX components Xceed FTP for ActiveX spaces in filename

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #42720 |

    using the getFolderContents method when I pass it a filename like “MY FILE.DOC” it gives me a “The remote file could not be opened by the ftp server.” message. I assume because it can’t handle the space in the filename. I wanted to avoid passing “*.DOC” to get a whole list of files to search through for the file I was looking for mainly because I wanted to make things as fast as possible. Is there a way to fix this?

    Imported from legacy forums. Posted by dsa1971 (had 3330 views)

    User (Old forums)
    Member
    Post count: 23064

    Are you using the Microsoft built-in Ftp Server ?
    In this case, try to use the command line.

    If you write :

    DIR <youfile>

    An error will be generated !!!

    Using other ftp servers, they simply will return an empty list.

    I had your same problem. I solved it writing a subroutine where if an error occours, I assume that the file does not exists.

    Ciao !

    Pier

    Imported from legacy forums. Posted by sibgroup (had 3395 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.