diff --git a/Upload.class.php b/Upload.class.php index 6f0f570..4a51706 100644 --- a/Upload.class.php +++ b/Upload.class.php @@ -92,6 +92,7 @@ abstract class Upload } $image->type = $greagwar_image->guessType(); $file_path = $greagwar_image->cacheFile($image->type, $quality = 100, true); + chmod($file_path, 0664); $image->size = filesize($file_path); $path_parts = pathinfo($file_path); $image->path = preg_replace('#^' . Config::get('PATH_WEB_ROOT') . '/#', '', $path_parts['dirname']);