I have wrote a PHP file which will save a JPEG file in the server and part of the code is listed as follow:
//create folder if folder not exist if (!is_d
I would try changing the creation of the folder to use the recursive flag:
$flag = @mkdir($save_path . "/" . $file,0777,true);