Error during upload with Filament fileupload

I see this error every time I want to upload a large file like more than 1 MB though the maximum file size in livewire.php is 12 MB and max upload time is 5 min.
I also tried ->maxSize(1024 * 10) on FileUpload class but the same error keeps popping up after uploading a file more than 1 MB.

Here is my code:
FileUpload::make('file')
                                        ->directory('projects/attachments')
                                        ->enableDownload()
                                        ->enableOpen()
                                        ->required(),


What should I do?
Solution
Check you php configuration (php.ini) and your server configuration too.
Was this page helpful?