Hi folks! Has anyone had any issues with aborting a TUS upload? I keep getting: `Access to XMLHttpR
Hi folks! Has anyone had any issues with aborting a TUS upload?
I keep getting:
I'm currently using tus-js-client in a nextjs app on cf pages.
The tus.Upload endpoint is using a worker at https://[route].[zone].workers.dev/tus-upload
in the worker im making the following request
I was hoping to see if the termination extension from TUS is available but no Tus-Extension is present in the OPTIONS response header.
Makes me believe that the it may not be possible to terminate a tus upload.
Any help would be greatly appreciated spent a couple days on this including building with uppy first.
Thank you,
Facundo
I keep getting:
Access to XMLHttpRequest at 'https://upload.videodelivery.net/tus/111c1ed1345a12923fe182bd56744cdb?tusv2=true' from origin 'https://watchl.ink' has been blocked by CORS policy: Method DELETE is not allowed by Access-Control-Allow-Methods in preflight response.I'm currently using tus-js-client in a nextjs app on cf pages.
The tus.Upload endpoint is using a worker at https://[route].[zone].workers.dev/tus-upload
in the worker im making the following request
const response = await fetch(
https://api.cloudflare.com/client/v4/accounts/${env.CLOUDFLARE_ACCOUNT_ID}/stream?direct_user=true,
{
method: 'POST',
headers: {
'Authorization':Bearer ${env.CLOUDFLARE_API_TOKEN},
'Tus-Resumable': '1.0.0',
'Upload-Length': request.header('Upload-Length') 'maxDurationSeconds NjAw',
'Upload-Creator': request.header('Upload-Creator') || '',
'Access-Control-Allow-Methods': '*',
},
}
)
I was hoping to see if the termination extension from TUS is available but no Tus-Extension is present in the OPTIONS response header.
Makes me believe that the it may not be possible to terminate a tus upload.
Any help would be greatly appreciated spent a couple days on this including building with uppy first.
Thank you,
Facundo


