Skip to content

Commit 2799ebd

Browse files
committed
Set uploaded files with 644 permissions instead of 777
1 parent d2bb3ef commit 2799ebd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FileUploader/FileUploader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ private function setFilePermissions(string $fileName): void
220220
}
221221

222222
if (file_exists($filePath) && $userOwner && $groupOwner) {
223-
chmod($filePath, 0777);
223+
chmod($filePath, 0644);
224224
chown($filePath, $userOwner);
225225
chgrp($filePath, $groupOwner);
226226
}

0 commit comments

Comments
 (0)