php: loading images and videos on the server using a request via update

I have a string arraylist that contains the paths of videos and images. I wanted to know that it is possible to load the types of image and video files present within my list of arrailistas with one or a single request using the modification.
Since when I arrived at this line of code:

RequestBody requestBody = RequestBody.create (
MediaType.parse ("image / *"),
case file);

I do not know how to do it or if it is possible to analyze images and videos at the same time.

Can someone inform me about the possibility and provide me with a sample code on how to do it?
Thanks in advance.