使用php curl上传文件

Sending the wrong mime-type. the file type "video/mp4" but "application / octet-stream" as the sending. I want to send "video/mp4". Curl option($file = real path)

$post = array('videoupload'=>'1','input_1'=>"@$file");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$post);
curl_setopt($ch, CURLOPT_INFILESIZE,(string)filesize($file));
curl_setopt($ch, CURLOPT_INFILE,fopen($file,'r'));

Http debugger Out

------------------------------94a50e65d9fe Content-Disposition: form-data; name="videoupload"

1 ------------------------------94a50e65d9fe Content-Disposition: form-data; name="input_1"; filename="1.mp4" Content-Type: application/octet-stream

I've tried it

$post = array('videoupload'=>'1','input_1'=>"@$file;type=video/mp4");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$post);
curl_setopt($ch, CURLOPT_INFILESIZE,(string)filesize($file));
curl_setopt($ch, CURLOPT_INFILE,fopen($file,'r'));

curl_error out:

failed creating formpost data

try adding CURLOPT_HTTPHEADER in curl_setopt like that

curl_setopt($ch, CURLOPT_HTTPHEADER,array('Content-Type: video/mp4'));