Skip to content

Commit 1012d11

Browse files
committed
Set contentType in config as well for gcloud bucket config
1 parent 1cfa8b9 commit 1012d11

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Helper/Uploadable/UploadableFileManager.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ public function persistFiles(object $object): void
153153
$stream,
154154
[
155155
'mimetype' => $file->getMimeType(),
156+
'metadata' => [
157+
'contentType' => $file->getMimeType()
158+
]
156159
]
157160
);
158161
$classMetadata->setFieldValue($object, $fieldConfiguration->property, $path);

src/Security/Voter/ComponentVoter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ protected function voteOnAttribute($attribute, $subject, TokenInterface $token):
106106

107107
private function isRouteReachableResource(Route $route, Request $request): bool
108108
{
109-
dump($route);
110109
$path = $this->iriConverter->getIriFromResource($route);
111110

112111
return $this->isPathReachable($path, $request);

0 commit comments

Comments
 (0)