File Upload Error With QNetworkAccessManager

后端 未结 1 1880
醉酒成梦
醉酒成梦 2021-01-13 04:59

I am trying to upload a file to a server using QNetworkAccessManager in Qt 5.0 on CentOS 6.4.

I have tried following a few examples online but none of them work. QFT

相关标签:
1条回答
  • 2021-01-13 05:33

    Change:

    QUrl url2("ftp://example.com");
    

    to

    QUrl url2("ftp://example.com/somefile");
    

    It is necessary to point out the link to a file.

    0 讨论(0)
提交回复
热议问题