Closed (works as designed)
Project:
Storage API
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2012 at 15:52 UTC
Updated:
2 Mar 2012 at 15:56 UTC
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.
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
Comment #1
Nr. 18 commentedSorry, 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 :-)