getting Problem related to Server.uri() function

Hi,
My project is about interfacing the “esp32cam” module with camera and storing the photo clicked in sd card , and then retreiving back the photo from sd card and sending that photo to an API Server (which is basically a php Server).
i am not sure what i am doing wrong with my code, I guess something is wrong with the server.uri() function because in my code
loadFromSdCard(server.uri())
function is returning FALSE value …

code is attached…
please reply as soon as possible…

Cam_sketch_jul02a.ino (12.4 KB)