Убрано установка прав доступа на загруженный файл в 664
This commit is contained in:
@ -116,7 +116,6 @@ abstract class Upload
|
|||||||
}
|
}
|
||||||
$image->type = $greagwar_image_clone->guessType();
|
$image->type = $greagwar_image_clone->guessType();
|
||||||
$file_path = $greagwar_image_clone->cacheFile($image->type, $quality = 100, true);
|
$file_path = $greagwar_image_clone->cacheFile($image->type, $quality = 100, true);
|
||||||
chmod($file_path, 0664);
|
|
||||||
$image->size = filesize($file_path);
|
$image->size = filesize($file_path);
|
||||||
$path_parts = pathinfo($file_path);
|
$path_parts = pathinfo($file_path);
|
||||||
$image->path = preg_replace('#^' . Config::get('PATH_WEB_ROOT') . '/#', '', $path_parts['dirname']);
|
$image->path = preg_replace('#^' . Config::get('PATH_WEB_ROOT') . '/#', '', $path_parts['dirname']);
|
||||||
|
Reference in New Issue
Block a user