Merge branch 'fixes/fix-photos-folder-on-defunt' into staging
This commit is contained in:
commit
e06f1a159d
@ -2787,7 +2787,7 @@ class PageController extends Controller {
|
|||||||
}
|
}
|
||||||
$photoName = basename($_FILES["photo"]["name"]);
|
$photoName = basename($_FILES["photo"]["name"]);
|
||||||
$filename = uniqid() . "_" .$photoName;
|
$filename = uniqid() . "_" .$photoName;
|
||||||
$fullPath = $folder.$photoName;
|
$fullPath = $folder.$filename;
|
||||||
$fileContent = file_get_contents($_FILES["photo"]["tmp_name"]);
|
$fileContent = file_get_contents($_FILES["photo"]["tmp_name"]);
|
||||||
$this->storage->newFile($fullPath,$fileContent);
|
$this->storage->newFile($fullPath,$fileContent);
|
||||||
$this->adminStorage->newFile($fullPath,$fileContent);
|
$this->adminStorage->newFile($fullPath,$fileContent);
|
||||||
@ -2819,7 +2819,7 @@ class PageController extends Controller {
|
|||||||
}
|
}
|
||||||
$photoName = basename($_FILES["photo"]["name"]);
|
$photoName = basename($_FILES["photo"]["name"]);
|
||||||
$filename = uniqid() . "_" .$photoName;
|
$filename = uniqid() . "_" .$photoName;
|
||||||
$fullPath = $folder.$photoName;
|
$fullPath = $folder.$filename;
|
||||||
$fileContent = file_get_contents($_FILES["photo"]["tmp_name"]);
|
$fileContent = file_get_contents($_FILES["photo"]["tmp_name"]);
|
||||||
$this->storage->newFile($fullPath,$fileContent);
|
$this->storage->newFile($fullPath,$fileContent);
|
||||||
$this->adminStorage->newFile($fullPath,$fileContent);
|
$this->adminStorage->newFile($fullPath,$fileContent);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user