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?