Results 1 to 2 of 2

Thread: Problem with the put() function of QFtp class

  1. #1

    Default Problem with the put() function of QFtp class

    I used the QFtp:: put() function to upload a file to the server. But if the file already exists on the server, I will get an error message:Could not create file. What should I do to overwrite the file on the server? Thanks!

  2. #2
    Join Date
    Mar 2009
    Posts
    25
    Thanked 2 Times in 2 Posts

    Default Re: Problem with the put() function of QFtp class

    Maybe call QFtp::list first to check the original file on the server and then call QFtp::remove to delete it if you decide you should do it.

Similar Threads

  1. Plugin-signals-slots problem
    By Misenko in forum Qt Programming
    Replies: 8
    Last Post: 23rd September 2008, 20:53
  2. Problems calling C function in C++/Qt class
    By Rayven in forum General Programming
    Replies: 2
    Last Post: 2nd June 2006, 21:32
  3. virtual overloaded functions and base class function call...
    By nouknouk in forum General Programming
    Replies: 7
    Last Post: 11th March 2006, 21:26
  4. Replies: 16
    Last Post: 7th March 2006, 15:57
  5. K&R's strcpy function - problem with pointers
    By jamadagni in forum General Programming
    Replies: 7
    Last Post: 8th January 2006, 15:16

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.