我正在尝试使用$lib->upload($_FILES["fileToUpload"]["tmp_name"], false);从Wordpress站点中的计算机直接上传到Vimeo $lib-&t;upload($_FILES["fileToUpload"]["tmp_name"], false); 但它一直在失败。 另外它无法上传1MB以上的大文件,目标是允许用户在一次上传中上传高达100MB
I'm trying to upload directly to Vimeo from my computer in a Wordpress site using $lib->upload($_FILES["fileToUpload"]["tmp_name"], false); but it keeps failing. Plus it can't upload large files above 1MB,target is to allow users to upload upto 100MB in a single upload
最满意答案
大多数谈话都发生在上面的评论中,但无论如何我都在这里添加答案。
该视频正在成功上传,问题是该视频以“无标题”返回。
要编辑视频,您需要执行API调用$lib->request($video_uri, ['name' => $title], 'PATCH'); ,并确保您的令牌具有编辑范围。
Most of the conversation happened in the comments above, but I'm adding an answer here anyway.
The video was being uploaded successfully, the problem was that the video was returning as "untitled".
To edit a video you need to perform the API call $lib->request($video_uri, ['name' => $title], 'PATCH');, and ensure your token has the edit scope.
更多推荐
发布评论