FilamentF
Filament3y ago
N1XN

Unable to retrieve the mime_type for file at location: livewire-tmp/kHGEXYiSJSh3w2av6KCn8cYKvfexf6-m

Trying to upload files via SpatieMediaLibraryFileUpload but results in error:

config/filesystem.php
        'minio' => [
            'driver' => 's3',
            'endpoint' => env('MINIO_ENDPOINT'),
            'key' => env('MINIO_KEY'),
            'secret' => env('MINIO_SECRET'),
            'region' => env('MINIO_DEFAULT_REGION'),
            'bucket' => env('MINIO_BUCKET'),
            'use_path_style_endpoint' => true,
            'throw' => true,
        ],


Inside filament form
                    SpatieMediaLibraryFileUpload::make('images')
                        ->label('Images')
                        ->image()
                        ->collection('images')
                        ->multiple()
                        ->imageResizeMode('cover')
                        ->imageCropAspectRatio('16:9')
                        ->imageResizeTargetWidth('1920')
                        ->imageResizeTargetHeight('1080')
                        ->enableReordering()
                        ->required(),


The images get uploaded to minio but to livewire-tmp
Solution
its because minio is not fully compatible running inside docker and serving outside http
Was this page helpful?