F
Filamentβ€’7mo ago
Atena.D

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(),
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.
Jump to solution
2 Replies
Solution
ChesterS
ChesterSβ€’7mo ago
Check you php configuration (php.ini) and your server configuration too.
Atena.D
Atena.DOPβ€’7mo ago
Oh, Thank you so much! In fact I didn't know there is such an option in php.ini. I changed it to upload_max_filesize = 1000M and now it's working πŸ˜ƒ
Want results from more Discord servers?
Add your server