Wrong permission on upladed files

Permalink
files uploaded are created with 600 as permission. the webserver in the shared hosting that i am using requires 640 and thus generates a permission denied when accessing the files / images.

i already tried to change umask to 022 in php.ini, but no results

 
epicoun replied on at Permalink Reply
found a solution.

this blog post pointed to the right direction:

http://blogs.medicine.iu.edu/webnews/tag/umask/...

in 5.6 you have to modify file_permission_config.php to always uses 664

if (!defined('FILE_PERMISSIONS_MODE')) {
$perm = Loader::helper('file')->getCreateFilePermissions()->file;
if($perm) {
define('FILE_PERMISSIONS_MODE', $perm);
} else {
define('FILE_PERMISSIONS_MODE', 0664);
}
}

if (!defined('FILE_PERMISSIONS_MODE')) {
define('FILE_PERMISSIONS_MODE', 0664);
}