FilamentF
Filament3y ago
Emir

FileUpload gives null url

This is my field config
                Forms\Components\FileUpload::make('image_url')
                    ->disk('local')
                    ->visibility('public')
                    ->openable()
                    ->required(),


when I try to create an entity I get this message

SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "image_url" of relation "raffle_postings" violates not-null constraint DETAIL: Failing row contains (19, test, null, test, test, 1000.00, 1000.00, t, 2023-12-23 10:10:10, 2023-12-20 13:09:29, 2023-12-20 13:09:29). 


I tried with s3 and local filesystems but I got the same result
Was this page helpful?