我正在使用vimeo PHP API,这是API的链接:https://github.com/vimeo/vimeo.php

当我通过网址上传视频时,我遇到了一个问题 . 文件正在上传,但是当我在vimeo上看到视频时 . 它说: Invalid file There was a problem with the file you tried to upload.

我使用以下代码行将视频发送到vimeo:

$lib = new Vimeo($config['client_id'], $config['client_secret'], $config['access_token']);
$response = $lib->request('/me/videos', ['type' => 'pull', 'link' => $videowebpath], 'POST');`

$ videowebpath是mp4文件的weburl ...就像http://example.com/video/abx.mp4

如果我使用上传功能上传相同的文件 . 它也适用于vimeo . 这是代码:

$uri = $lib->upload($absolutepath);

$ absolutepath是mp4文件的绝对路径...比如'c:/example.com/video/abc.mp4'

我真的想通过上传来实现它 . 谁能让我知道可能是什么问题?