ankitpokhrel / ankitpokhrel/tus-php

CloadFlare Direct creator uploads

オープン
#441 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。