Я получаю этот URL-адрес из кода ниже - https://storage.googleapis.com/download/storage/v1/b/authen-f0c61.appspot.com/o/file_749800628_1588753995.pdf?generation=1588754011958214&alt=media
Мне нужен URL-адрес, который будет выглядеть так: https://firebasestorage.googleapis.com/v0/b/authen-f0c61.appspot.com/o/filess%2Fdocument_1097259342.pdf?alt=media&token=ff857368-823e-4da8-bb62-f8e8a10fa17a
Как я могу достичь своей цели?
public function fileUpload($file, $name){ $fileRef = $this->storageBucket->upload($file, [ 'name' => $name ]); $fileRef->update( ['acl' => []], ['predefinedAcl' => 'PUBLICREAD'] ); return $fileRef->info()['mediaLink']; }