Skip to content

A self-hosted media server and file management system

fix: permission issues

aminnausin46e5c9e26b6a
diff --git a/app/Services/PreviewGeneratorService.php b/app/Services/PreviewGeneratorService.php
index d296c207..b1d0c18b 100644
--- a/app/Services/PreviewGeneratorService.php
+++ b/app/Services/PreviewGeneratorService.php
@@ -203,12 +203,11 @@ class PreviewGeneratorService {
Storage::disk('public')->delete($tempRelativePath);
}
- if (! $selfStore || ! isset($imageContents)) {
+ if (!$selfStore || !isset($imageContents)) {
return $imageContents ?? false;
}
Storage::disk('public')->put($relativePath, $imageContents);
-
return VerifyFiles::getPathUrl($relativePath);
}
}