The uploaded file was only partially uploaded using xibo api

Right now i’m trying to develop a web page in order to ease uploading media and asigning it to a display.
I’m using the xibo api to do so and rn i’m having some issues uploading media as everytime I try to upload an image for example, it tells me:

{“files”:[{“name”:“E900-EU-3_850x425_1024x1024.jpg”,“size”:0,“type”:“”,“error”:“The uploaded file was only partially uploaded”}]}

And i’m not really sure what is happening.
I’m using curl to handle and send the request to my server. My code is:

$tmpfile = $_FILES[‘fileToUpload’][‘tmp_name’];
$filename = basename($_FILES[‘fileToUpload’][‘name’]);
curl_setopt_array($curl, array(
CURLOPT_URL => “myserveraddress.com”,
CURLOPT_RETURNTRANSFER => false,
CURLOPT_ENCODING => “”,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 300,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “POST”,
CURLOPT_POSTFIELDS => array(‘files’ => curl_file_create($tmpfile, $_FILES[‘fileToUpload’][‘type’], $filename), ‘expires’ => $ExpDate),
//Los medios estan dispuestos para expirar 1 dia despues de la subida
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer ".$authCode,
“User-Agent: PostmanRuntime/7.23.0”,
“Accept: /”,
“Cache-Control: no-cache”,
“Host: MyServerAddress.com”,
“Content-Type: multipart/form-data;”,
“Accept-Encoding: gzip, deflate, br”,
“Content-Length: 867”,
“Connection: keep-alive”
),
));

I’m testing it with xampp rn.

I’d like to know if I have to do some configs on my xibo installation on my server or is it my code what is wrong.
Thanks.
Marco.

Sorry for the late reply - that error message comes from PHP: PHP: Error Messages Explained - Manual - the UPLOAD_ERR_PARTIAL.

As for the root cause, I am not sure, but perhaps the above info might help you find out? I think its likely to be environment related.