Hi I have more of a question than a bug. I have a laravel application that I am trying to do a direct creator upload . according to the cloudflare folks The steps to follow:
- Point Uppy’s endpoint to my server’s API endpoint (not cloudflare upload URL)
- My server requests an upload URL from cloudflare API (extracting it from the location header).
- My server then sends an empty 201 response with the upload URL in it’s own
Locationheader - Uppy automatically extracts the
Locationheader and uploads the correct URL
What I have done so far.
1 set up ankitpokhrel/tus-php in my laravel app. - created client in my laravel blade/frontend (seems to work)
- created server with steps in github.com/ankitpokhrel/tus-php/wiki/Laravel-&-Lumen-Integration (not sure on this one)
I have a few questions and issues:?? - in my client code I pointed the endpoint to .use(Uppy.Tus, { endpoint: ‘mydomain/tus/’ }); is this correct??
- Is mydomain/tus supposed to be a tus server.? when I go directly to mydomain.com/tus i get a 404 error but the response header does say something about tus-resumable 1.0.0 .
- where exactly do I send the request to the cloudflare’s api to receive the tokenized upload link? is it in the tus server at TusServiceProvider.php ?