hi community, in my script is impossible upload a video (your video.mp4 example of @abraham library), please, you can help me ?
my code :
$file_path = DIR . ‘/video.mp4’;
$result = $connection->upload(‘media/upload’, array(‘media’ => $file_path, ‘media_type’ => ‘video/mp4’), true);
var_dump($result );
this return
stdClass Object
(
[request] => /1.1/media/upload.json
[error] => InvalidContent.
)