PDA

View Full Version : QFtp and Permission Denied



J-jayz-Z
22nd August 2007, 16:52
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:

QFile *file = new QFile(item->text());
ftp->put(file, fileInfo.fileName());
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?

jpn
22nd August 2007, 17:13
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-jayz-Z
22nd August 2007, 17:15
No, directory is changed ...
And the useraccount is the same ...