ankitpokhrel / ankitpokhrel/tus-php

CloadFlare Direct creator uploads

Đang mở
#441 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
PHP
Star
1.5k
Fork
220
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.