File Upload Issue

I add validation max size 2M and I try to add 1.9 M file then it shows error like this. The mountedTableActionsData.0.file.ca2ed8ee-98f8-4d33-83d4-e7664c4e9f62 failed to upload.
No description
Solution:
The image sent is in base64. Try increasing the value of your client_max_body_size in php.ini (and maybe post_max_size too)
Jump to solution
6 Replies
Alexandre
Alexandre2mo ago
Just to be sure, is the max file upload size value sufficient in your php.ini file?
Asmit Nepali
Asmit NepaliOP2mo ago
@Alexandre Thank you for reply max_file_uploads => 20 => 20 upload_max_filesize => 3M => 3M opcache.max_file_size => 0 => 0 My configuration
Alexandre
Alexandre2mo ago
Do you have a particular error in your console?
Asmit Nepali
Asmit NepaliOP2mo ago
console error
livewire.js?id=cc800bf4:612
POST http://exmple.test/livewire/upload-file?expires=1728985122&signature=59de44a856da3dc4086d52113ff8bab740b885363c943576cbd9853e0eb1022c 413 (Request Entity Too Large)
livewire.js?id=cc800bf4:612
POST http://exmple.test/livewire/upload-file?expires=1728985122&signature=59de44a856da3dc4086d52113ff8bab740b885363c943576cbd9853e0eb1022c 413 (Request Entity Too Large)
Solution
Alexandre
Alexandre2mo ago
The image sent is in base64. Try increasing the value of your client_max_body_size in php.ini (and maybe post_max_size too)
Asmit Nepali
Asmit NepaliOP2mo ago
Thank you @Alexandre It works !. I add client_max_body 100M; on nginx config file inside server block.
Want results from more Discord servers?
Add your server