Results 1 to 3 of 3

Thread: QFtp and Permission Denied

  1. #1

    Default QFtp and Permission Denied

    Hey,

    I've got an problem with QFtp ...
    I've written an Qt program for scaling and uploading Image files. Everthing works fine till now. QFtp tell me with ftp->errorString(); the following message:
    uloading file failed: pic.jpg: Permission denied
    I "put" the file like the standard way:
    Qt Code:
    1. QFile *file = new QFile(item->text());
    2. ftp->put(file, fileInfo.fileName());
    To copy to clipboard, switch view to plain text mode 
    QFile told me no error and the Ftp log only said "login correct".
    Uploading while using the standard ftp-client works fine. So there are no problems on the server-side. Any ideas?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QFtp and Permission Denied

    Quote Originally Posted by J-jayz-Z View Post
    uloading file failed: pic.jpg: Permission denied
    Could you have, by any chance, forgotten to change to a directory that allows writing?

    Uploading while using the standard ftp-client works fine. So there are no problems on the server-side.
    Just to assure, did you test with same user account and target directory?
    J-P Nurmi

  3. #3

    Default Re: QFtp and Permission Denied

    No, directory is changed ...
    And the useraccount is the same ...

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.