|
28 | 28 | * @method public setRelativeDirectory(@var string $directory): @return static |
29 | 29 | * @method public getMimeTypes(): @return array |
30 | 30 | * @method public getMimeType(@var string $key): @return string|array|null |
31 | | - * @method public getMimeContent(@var string $file, @var bool $absolute = false): @return string |
| 31 | + * @method public getMimeContent(@var string $filename, @var bool $absolute = false): @return string |
32 | 32 | * @method public getFileContent(@var string $relativeFile): @return string |
33 | 33 | * @method public exists(@var string $filePath, @var bool $absolute = false): @return bool |
34 | 34 | * @method public createSlug(@var string $string): @return string |
@@ -798,7 +798,7 @@ private function getFileInfo(SplFileInfo $file): array |
798 | 798 | 'extension' => $file->getExtension(), |
799 | 799 | // 'mime' => \mime_content_type(filename: $file->getPathname()) // 'mime' => $imageSize['mime'] ?? null |
800 | 800 | // 'mime' => $this->mime->guessMimeType(path: $file->getPathname()) |
801 | | - 'mime' => $this->getMimeContent(file: $file->getPathname(), absolute: true) |
| 801 | + 'mime' => $this->getMimeContent(filename: $file->getPathname(), absolute: true) |
802 | 802 | ]; |
803 | 803 | } |
804 | 804 |
|
@@ -916,7 +916,7 @@ public function upload(UploadedFile|array $files, string $folder, string $newNam |
916 | 916 | 'filemtime' => $file->getMTime(), |
917 | 917 | 'extension' => (!empty($file->getExtension())) ? $file->getExtension() : \pathinfo(path: $filename, flags: PATHINFO_EXTENSION), |
918 | 918 | // 'mime' => \mime_content_type(filename: $file->getPathname()) |
919 | | - 'mime' => $this->getMimeContent(file: $file->getPathname(), absolute: true) |
| 919 | + 'mime' => $this->getMimeContent(filename: $file->getPathname(), absolute: true) |
920 | 920 | ]; |
921 | 921 |
|
922 | 922 | // Upload file |
@@ -1252,3 +1252,4 @@ public function move(string $origine, string $target, bool $overwrite = false): |
1252 | 1252 | } |
1253 | 1253 | } |
1254 | 1254 |
|
| 1255 | + |
0 commit comments