Results 1 to 3 of 3

Thread: Uploading large file to FTP using QNetworkAccessManager

  1. #1
    Join Date
    Jan 2011
    Posts
    70
    Thanks
    43
    Thanked 4 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Uploading large file to FTP using QNetworkAccessManager

    My issue is quite similar to the post here (http://www.qtcentre.org/threads/5134...kAccessManager), but Chris's solution only worked partway for me.

    When I upload a small file (say, 750 bytes), everything works as expected. But when I PUT a large file (say, 65MB), I see the file created on the FTP with zero bytes and I'm unable to remove it from the FTP (using FileZilla) until I close the application, suggesting that it's still in use, but no data ever uploads. My QNetworkReply never emits uploadProgress(), finished(), or error(), so I don't have anything to troubleshoot.

    I'm completely stumped. Any ideas? I can post sample code, but it's basically the same as what ChrisW67 posted.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Uploading large file to FTP using QNetworkAccessManager

    Can you put the same file in the same place on the same server using the same credentials and a generic FTP program?

  3. #3
    Join Date
    Jan 2011
    Posts
    70
    Thanks
    43
    Thanked 4 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Uploading large file to FTP using QNetworkAccessManager

    Yes. I have copied the exact same file to the same location on the same server using FileZilla and the same username, password, port, and address.

    It is also the exact same location, server, address, port, username, and password that I used to copy the small file using QNetworkAccessManager. All that changed is the file (and size, of course).

    Both source files came from the same local folder on my computer.

Similar Threads

  1. Putting large size file on FTP using QNetworkAccessManager
    By darshan.hardas in forum Qt Programming
    Replies: 19
    Last Post: 6th January 2014, 20:45
  2. Uploading .doc file from qt having blob storage
    By Rupali Thorat in forum General Discussion
    Replies: 0
    Last Post: 11th September 2013, 11:20
  3. Large File Processing
    By sankar in forum Newbie
    Replies: 2
    Last Post: 30th August 2012, 23:17
  4. Replies: 1
    Last Post: 20th October 2011, 02:21
  5. To large exe file
    By wydesenej in forum Installation and Deployment
    Replies: 8
    Last Post: 24th January 2009, 21:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.