Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Using QTIFW with FTP



  • The use of QTIFW with FTP seems to be a continuous struggle. See also this post https://forum.qt.io/topic/56661/installer-framework-online-installer-can-t-log-into-repository-over-ftp

    My use case is a bit different. I simply want to have somewhere a ftp server and the access shall be controlled through username and password. The project did not have the highest priority, but the trials are stretching back at least to QTIFW 2.0. I was never sure where the problem was actually located with my external ftp site or the maintenance tool of QTIFW.

    Recently I have decided to setup a local ftp site on one of my development machines and tried to update an installation on the very same machine. The site has been added in the maintenance tool as temporary repository
    0_1534239058096_6d0e1faa-996a-43ce-b0bf-8907d476b4cd-image.png

    The proper user name and password has been added in the appropriate fields as shown above.
    After pressing "test" (button Testen) this dialog pops up
    0_1534239261498_9f3018bb-7252-4cd1-948a-5f221f885b25-image.png
    Indicating that user name and password is required for access.
    Obviously, there is at least also a problem with the maintenance tool.

    Remembering that there is "special" syntax for ftp urls including user name and password when using in browsers, I looked up the syntax since it has been los in the dusty corners of my memory.

    Surprisingly the syntax including user name and password as below was working.
    0_1534240125656_d18b4659-7764-42b7-b1b8-793817f939d7-image.png

    Certainly it looks awkward, but at least it is a work around.

    The question is if there is a functionality at all for the menu entries of user name and password?


  • Moderators

    @koahnig said in Using QTIFW with FTP:

    Surprisingly the syntax including user name and password as below was working.

    Interesting; I didn't realize Qt IFW works with FTP! (I thought it uses QNetworkAccessManager internally, which doesn't support FTP)

    I don't know the answer to your question, but you could try the Interest mailing list



  • @JKSH said in Using QTIFW with FTP:

    Interesting; I didn't realize Qt IFW works with FTP! (I thought it uses QNetworkAccessManager internally, which doesn't support FTP)

    QNetworkAccessManager can handle ip addresses starting with "ftp:". You can download files without problems. QNetworkAccessManager cannot handle the ftp commands for instance for folder navigation (cdup, etc.).