© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
33 replies
owulanii

File upload for large files

I have tried all possible ways to upload large files using filament. This works on my local machine but once i deployed to server, large files are not able to upload. This is how my form schema looks like:

FileUpload::make('file')
->label('Upload Merchant pay file here')
->rules(['required', 'file', 'max:122880'])
->maxSize(122880)
->acceptedFileTypes(['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/xlsx'])
->helperText('Only .xlsx files are allowed')
->required(),

made these changes in my php.ini file:
post_max_size = 120M,
upload_max_filesize = 120M

added this to my nginx config file: client_max_body_size = 200M
funny thing is that it was not working on my local before and then added this line: ->rules(['required', 'file', 'max:122880']) which got it to work for large files. I figured it should work once i deploy on my server but issue remained the same.

i'm still not able to successfully upload.
what else do i do? nothing shows in my laravel log, nginx log and php-fpm log. any suggestions?
Screenshot_2024-12-06_at_2.05.31_PM.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

Optimizing file upload for large files avoid slow move on save
FilamentFFilament / ❓┊help
12mo ago
can we add job when uploading large size files in file upload
FilamentFFilament / ❓┊help
3y ago
multiple file upload - missing some files
FilamentFFilament / ❓┊help
2y ago
File Upload without loading existing files
FilamentFFilament / ❓┊help
3y ago