Cambio de multipart Axios

This commit is contained in:
2026-05-09 15:20:23 -06:00
parent 2d51c8f558
commit b41f94f436
4 changed files with 71 additions and 24 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ class ChatController extends Controller
$request->validate([
'receiver_id' => 'required|exists:users,id',
'body' => 'nullable|string',
'attachment' => 'nullable|file|max:20480',
'attachment' => 'nullable|file|max:51200',
]);
$receiver = User::findOrFail($request->receiver_id);