This commit is contained in:
RafficMohammed
2023-02-28 19:58:21 +05:30
parent 40809202df
commit 34bb914fef
3 changed files with 7 additions and 5 deletions

View File

@@ -204,7 +204,7 @@ class StorageController extends Controller
if ($this->default !== 'database') {
$this->setFileSystem();
Storage::disk($this->default)->put($filename, $data);
$storagePath = Storage::disk($this->default)->getDriver()->getAdapter()->getPathPrefix().$filename;
$storagePath = Storage::disk($this->default)->path($filename);
if (mime(\File::mimeType($storagePath)) != 'image' || mime(\File::extension($storagePath)) != 'image') {
chmod($storagePath, 1204);
}