直接将视频上传到Vimeo(Direct upload of Video to Vimeo)

编程入门 行业动态 更新时间:2024-10-14 22:20:15
直接将视频上传到Vimeo(Direct upload of Video to Vimeo)

我正在尝试使用$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.

更多推荐

本文发布于:2023-07-15 07:13:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1111376.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:视频   Vimeo   Direct   upload   Video

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!