© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
13 replies
biebthesecond

Fileupload Maxsize not working?

Today I was testing some file uploads with max file sizes, and of course the server responded with a "413(Payload Too Large)". So I implemented a 12mb max upload size
->maxSize(12288)
->maxSize(12288)
. But when I tested it a again it seemed as if the validation didn't even happen, the fileuploader got stuck again and the server returned the same 413 error.

I've also tried to add
->live()
->live()
which didnt work. I've tried to updating the max upload size in the livewire config, didn't work either. Furthermore I have the maxuploadsize defined as php.ini is
100m
100m


I have a feeling it might have something to do I'm handling the upload in the
->afterStateUpdated(function (?Model $record) { //code })
->afterStateUpdated(function (?Model $record) { //code })
. But even then I would just expect it to show a error to the user that the max filesize is X amount.

Is it a bug that the validation is not working or am I missing something?
Solution
The fact it says payload is the indicator it's server side
Jump to solution
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 not working
FilamentFFilament / ❓┊help
2y ago
FileUpload required not working
FilamentFFilament / ❓┊help
9mo ago
FileUpload validation not working
FilamentFFilament / ❓┊help
15mo ago
Fill fileupload not working
FilamentFFilament / ❓┊help
16mo ago