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!
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!
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.
Bookmarks