unique filename on defunt photo
This commit is contained in:
parent
5cfbe8dc62
commit
847cbfcc5d
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user