Merge branch 'fixes/fix-photos-folder-on-defunt' into staging

This commit is contained in:
Tiavina 2025-01-31 16:46:15 +03:00
commit e06f1a159d

View File

@ -2787,7 +2787,7 @@ class PageController extends Controller {
}
$photoName = basename($_FILES["photo"]["name"]);
$filename = uniqid() . "_" .$photoName;
$fullPath = $folder.$photoName;
$fullPath = $folder.$filename;
$fileContent = file_get_contents($_FILES["photo"]["tmp_name"]);
$this->storage->newFile($fullPath,$fileContent);
$this->adminStorage->newFile($fullPath,$fileContent);
@ -2819,7 +2819,7 @@ class PageController extends Controller {
}
$photoName = basename($_FILES["photo"]["name"]);
$filename = uniqid() . "_" .$photoName;
$fullPath = $folder.$photoName;
$fullPath = $folder.$filename;
$fileContent = file_get_contents($_FILES["photo"]["tmp_name"]);
$this->storage->newFile($fullPath,$fileContent);
$this->adminStorage->newFile($fullPath,$fileContent);