Problem File not being uploaded on server through PHP – cURL Solution The CURLFile interface must be used to upload files. Code <?php $url = ‘http://192.168.1.94:5000/api/v1/upload-picture’; $img = ‘img/placeholder.png’; // Form-data $data_array = array( ‘id’ => 1, ‘picture_type’ => ‘user’, ‘file’ => new CurlFile($img) …