I have checked file exists, but showing error for some image file, not all.
$photo = $request->request->get('photo');
$obj = new \Symfony\Component\HttpFoundation\File\File($photo); // getting error from this line.
I have checked file exists, but showing error for some image file, not all.
$photo = $request->request->get('photo');
$obj = new \Symfony\Component\HttpFoundation\File\File($photo); // getting error from this line.