We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9bf4c2 commit c831fa6Copy full SHA for c831fa6
src/Application/Cms/File/Assembler/GetFileV1ResultAssembler.php
@@ -14,7 +14,7 @@ public function assemble(File $file): GetFileV1ResultDto
14
return new GetFileV1ResultDto(
15
$file->getContent(),
16
$file->getContentType()->getValue(),
17
- $file->getResource()->getUri()->getPathname(),
+ $file->getResource()->getUri()->getFileName(),
18
$file->getCacheTime()->getValue(),
19
);
20
}
src/Domain/Entity/ValueObject/Uri.php
@@ -24,4 +24,9 @@ public function getPathname(): string
24
{
25
return mb_substr($this->value, 1);
26
27
+
28
+ public function getFileName(): string
29
+ {
30
+ return basename($this->value);
31
+ }
32
0 commit comments