Multiple files in array (Content-Type: multipart/form-data) #259
Answered
by
romalytvynenko
paulbrosowsky
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
romalytvynenko
Oct 24, 2023
Replies: 2 comments 6 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
@paulbrosowsky please try /**
* @requestMediaType multipart/form-data
*/
public function index(Request $request)
{
$valideData = $request->validate([
'files' => ['required', 'array'],
'files.*' => ['required', 'image:jpg, png', 'max:5120'],
]);
} |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
paulbrosowsky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@paulbrosowsky please try
@requestMediaType
out: