Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to delete files from ftp?
Qt 6.12 LTS is out! See what's new in the release blog

How to delete files from ftp?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    _compiler
    wrote on last edited by
    #1

    @
    QUrl uploadurl("ftp://ftp.aaa.com/httpdocs/img/1.jpg");
    uploadurl.setUserName("username");
    uploadurl.setPassword("password");
    uploadurl.setPort(21);
    QNetworkRequest upload(uploadurl);
    QNetworkAccessManager *uploadman = new QNetworkAccessManager(this);
    QNetworkReply *rep = uploadman->deleteResource(upload);
    qDebug() << rep->errorString();
    @

    result "Unknown error"

    help!

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rich
      wrote on last edited by
      #2

      QNetworkManager doesn't currently support delete for FTP.

      1 Reply Last reply
      0
      • _ Offline
        _ Offline
        _compiler
        wrote on last edited by
        #3

        hmm ok, thanks

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt
        • Unsolved