curl_file_create($tmp_file_name, $file_type, $file_name) ); if(empty($tmp_file_name)) { echo''; }else { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $upload_aadhaar_card_front = curl_exec($ch); curl_close($ch); // echo $response; } }else{ $upload_aadhaar_card_front = ''; } ?>