FilamentF
Filament9mo ago
Akimbo

Filament V3 not working with s3 and image column

I have made an image column that I am uploading to s3.

The upload works when I am initially creating a form, I can see the image in s3. But when I go to save the resource, the column fails with validation "The school Logo field must be a file of type: image/*". This is despite successfully saving it to s3. I am uploading a png.

Here is the form and table column.

Tables\Columns\ImageColumn::make('path')
                    ->disk('s3')
                    ->width(100)
                    ->height(100)
                    ->label('Logo')
                    ->visibility('public')


Forms\Components\FileUpload::make('path')
                    ->label("School Logo")
                    ->disk('s3')
                    ->visibility('public')
                    ->image()
Solution
found my issue. i had overwritten the file-upload.blade.php but seems this file has changed in a new version of filament
Was this page helpful?