© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
dusan8061

File upload error

Hello guys!
I have weird problem -
I want to upload file (pdf in this case) 25M, and it's throwing me an error which doesn't say much.
I have checked my php version, php.ini and everything with the file size seems ok to me, but still, it's not working.
From the other side, I Can upload very small pdf (around 65kb) and it works!
So my upload_max_filezise, post_max_size are set to 50M, and I can't upload 25M file, but 65kb yes.
This is the code in my resource which I am using

Forms\Components\FileUpload::make('files')
->label(__('Files'))
->acceptedFileTypes(['application/pdf'])
->multiple()
->directory('products/attachments')
->preserveFilenames()
->enableOpen()

What am I doing wrong? Anyone similar problem?
Thanks in advance,
Dusan
Screenshot_2023-05-31_at_17.52.38.png
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

file upload error
FilamentFFilament / ❓┊help
2y ago
File Upload Error
FilamentFFilament / ❓┊help
3y ago
File Upload 422 Error
FilamentFFilament / ❓┊help
3y ago
File upload validation error
FilamentFFilament / ❓┊help
3y ago