If you make use of the service Netstorage from Akamai you are not allowed with the ftp user to set the chmod causing the upload of a file to fail.

I solved it temporarily in the file: ftp.inc on line 82 cause Akamai forces the correct settings on ftp so for the net storage the call is unnecessary.

<?php
private function setMode($filename, $mode) {
//    if (!ftp_chmod($this->ftpStream, octdec(str_pad($mode, 4, '0', STR_PAD_LEFT)), $filename)) {
//      throw new StorageException();
//    }
}
?>

A good idea is to check if the the action is possible or an optional setting in the configuration.

Comments

Status:Active» Closed (works as designed)

Sorry, didn't read the description as good as i should.
If you don't fill in the File mode it won't try to change it :-)