Hi
I need to upload multiable images in the same request to the api , the api should receive 4 images in the post request , however I was able to know how to send one image but I couldn’t find how to send more than one image at a time , here is my code for the one image :
as I said this code is able to upload inly one image whereas I need to upload four images at once. I searched in the documentations for a way but didn’t find what I want and I searched in google but no luck.
Thanks guys
Did you write the backend? Are you certain it is capable of accepting 4 files at once in a single request? That would surprise me. Why can’t you make four parallel transfer objects on the same URL?
sadly I’m not the one who wrote the back-end code , the request should have the four files with (different keys of course)
as you can see in the picture :
when I tried to upload one picture I got this error :
{"frontside_image":["The frontside image field is required."],"leftside_image":["The leftside image field is required."],"backside_image":["The backside image field is required."],"rightside_image":["The rightside image field is required."]}
and from what I know about the developer who wrote the back-end code I’m sure it’s in the same request
What format does it say those four images are? How big are they? You could send multiple base 64 strings of the images…but there’s no way to know if that’s what they want.