My problem tried to create a small script that allows me to create a folder and within this a file (jpg) in the Firebase Storage. I found on the web that just placing the name of the folder before the name of the file should be generated, but the file is not generated and loaded. The file is only loaded when I manually create the folder in Storage.
My upload code:
public function upload(){
$this->bucket->upload(
file_get_contents($_FILES['uploadedfile']['tmp_name']),
[
'name' => "ena/" . $_FILES['uploadedfile']['name']
]
);
}
I am using the Kreait library. Thank you and I look forward to your support.