devendra
CDCloudflare Developers
•Created by devendra on 2/24/2024 in #general-help
Upload using tus is never finished
Hi, I want to upload video using stream direct upload. In the backend I have created backend API will will return the stream direct upload url.
That part is working fine and I am able to generate upload URL.
Now in the frontend, I am using TUS for uploading the video. Video is showing progress but after 100%, it never finishes. Below is my code:
And in the browser console, I got the below error:
app-index.js:33 Failed because: Error: tus: unexpected response while uploading chunk, originated from request (method: PATCH, url: https://upload.cloudflarestream.com/..., response code: 400, response text: Basic uploads must be made using POST method, request id: n/a)
I am stuck . Please help me.2 replies