ankitpokhrel / ankitpokhrel/tus-php

CloadFlare Direct creator uploads

未关闭
#441 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
1.5k
派生
220
PR 合并指标
30 天内没有已合并 PR

描述

Cloudflare supports the direct creator uploads with the tus client as mentioned here https://developers.cloudflare.com/stream/uploading-videos/direct-creator-uploads/#step-2-use-this-api-endpoint-with-your-tus-client

`
$client = new \TusPhp\Tus\Client( 'https://upload.cloudflarestream.com/XXXX');
$client->setApiPath('/api');
$upload_key = uniqid(); // Unique upload key.
$client->setKey( $upload_key );
$response = $client->file( , )->upload( 5000000 `);`

However, I am getting the `Unable to create resource.` error.

It would be good if you could share your thoughts on this. Is there anything I am doing wrong in implementation, or do you have an example of where I can upload the video to Cloudflare?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。