Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 :-)