Livewire fires a livewire-upload-error JS event when an upload fails, including 413 responses from the server. Add x-on: Alpine listeners on the comment and reply forms to display an error message instead of silently failing. Use x-on: instead of @ shorthand to avoid Blade parsing @livewire as a directive.
9.4 KiB
9.4 KiB