Results 1 to 7 of 7

Thread: QFtp:upload file to server

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QFtp:upload file to server

    Quote Originally Posted by ensky_cy View Post
    Thank you!
    The files is like:"D:/Qt/TCP/xxx.rar",and the filename is "xxx.rar".
    We create the file(xxx.rar), not the file(D:/Qt/TCP/xxx.rar).So , I need to pick up the xxx.rar.
    For that you doesn't need to write so much as you have written.
    Just 2 lines are enough
    Qt Code:
    1. QFileInfo fi("/tmp/archive.tar.gz");
    2. QString name = fi.fileName();
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to yogeshgokul for this useful post:

    ensky_cy (14th December 2009)

  3. #2
    Join Date
    Oct 2009
    Location
    China
    Posts
    20
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Cool Re: QFtp:upload file to server

    yes ,QFileInfo is useful.

Similar Threads

  1. How to upload file to HTTP server (POST Method)
    By Alex Snet in forum Qt Programming
    Replies: 8
    Last Post: 24th January 2011, 22:49
  2. Read binary from file
    By weldpua2008 in forum Newbie
    Replies: 2
    Last Post: 3rd April 2009, 23:50
  3. How to download any file through ftp server
    By thomasjoy in forum Qt Programming
    Replies: 1
    Last Post: 24th July 2007, 01:23
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  5. Enctrypted file uploads to a server
    By hardgeus in forum Qt Programming
    Replies: 3
    Last Post: 11th December 2006, 23:10

Tags for this Thread

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.