© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y 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
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

FileUpload with url
FilamentFFilament / ❓┊help
3y ago
fileupload signed url issue
FilamentFFilament / ❓┊help
17mo ago
url() validation gives me valid url
FilamentFFilament / ❓┊help
16mo ago
FileUpload Form Field gives unexpected error.
FilamentFFilament / ❓┊help
2y ago