F
Filament12mo ago
Emir

FileUpload gives null url

This is my field config
Forms\Components\FileUpload::make('image_url')
->disk('local')
->visibility('public')
->openable()
->required(),
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).
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
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server