1
0
Fork 0

Set permissions

This commit is contained in:
Michael 2022-05-09 08:20:09 +00:00
parent 006b7a95f0
commit 9d1ff0a4ce

View file

@ -114,10 +114,14 @@ class Avatar
DI::profiler()->startRecording('file');
if (!file_exists($dirpath)) {
mkdir($dirpath, 0777, true);
mkdir($dirpath, 0775, true);
} else {
chmod($dirpath, 0775);
}
file_put_contents($filepath, $image->asString());
chmod($filepath, 0775);
DI::profiler()->stopRecording();
return DI::baseUrl() . $path;