Comments (13)
Contributing or forking is the only workaround for now.
from uppy.
Hi, unfortunately this has nothing to do with Uppy. Apparently you've setup some kind of authentication on your tus server and this is not the place for help with tus servers. There is also not enough information to help you. Companion doesn't expect the tus server to have auth so I recommend removing it and seeing if it works.
I know for a fact that things will work with tus-node-server and tusd
from uppy.
Apparently you've setup some kind of authentication on your tus server and this is not the place for help with tus servers.
@Murderlon
thanks for replay. I'm utilizing a Supabase endpoint for data transmission and need to include an access token in the headers, similar to how one can configure S3 in Companion. Therefore, I believe this issue is related to Uppy itself, as Companion is also provided with Uppy.
from uppy.
As far as I know it's not possible to send extra headers to the upload destination from Companion, only to Companion. But I can see the value in that, with Supabase, but also for anyone who wants to send auth headers to their destination.
from uppy.
Thank you, I appreciate it !
Yes, it's worth addressing, as I believe many Supabase users might encounter a similar issue.
from uppy.
Just ran into this myself 😕. I utilize RLS in Supabase so I need to be able to pass the JWT token. Are there any workarounds for this?
from uppy.
@Murderlon
Firstly, thank you for addressing this issue! You have been assigned, along with other team members, to address the issue. When do you estimate the feature solution for this problem will be completed?
from uppy.
We're very light on hours from core contributors lately. Currently Google Photos support is being developed and a massive TS migration, in preparation for #4764.
However since this is a small feature, I can probably take a look in the next two weeks.
The quikfix would be to allow a Record<string, string>
to be send. But the proper fix would be some async function to generate a token and also support to refresh the token on 401
. Both cases would only work when you integrate Companion manually into Express, not in standalone.
Thoughts @mifi? Here is a client-side example from Supabase.
from uppy.
Looking at the code I dont understand why the supabase client side example wouldn’t work. As far as i can see, when a Tus upload happens in companion, the Uppy Tus plugin headers
option does get passed in the request body (json) to companion. Companion will then take these headers and pass them to tus-js-client. So I’m not sure what is the exact problem here
from uppy.
However since this is a small feature, I can probably take a look in the next two weeks.
Awesome, thank you! I'll definitely give it a try once it's implemented
Companion will then take these headers and pass them to tus-js-client. So I’m not sure what is the exact problem here
I understand, but it seems it didn't work out for both @ikupenov and me
from uppy.
I was using standalone companion in Docker if that matters.
from uppy.
I just tested locally with yarn dev:with-companion
:
uppyDashboard.use(Tus, { endpoint: 'http://127.0.0.1:8001', limit: 6, headers: { 'X-MyHeader': 'hello' } })
I then ran a fake Tus TCP server:
nc -v -l 8001
and I uploaded a single file from google drive, and I got this on my fake Tus TCP
POST / HTTP/1.1
Tus-Resumable: 1.0.0
X-MyHeader: hello
X-Request-ID: 3d4f91c7-5829-4199-a521-80f0b6fb3e78
Upload-Defer-Length: 1
Upload-Metadata: filename ...
Host: 127.0.0.1:8001
Connection: close
Content-Length: 0
as you can see the header is included, so it seems to be working. Need some reproducible code or more detailed steps to reproduce if you think it's still an issue.
from uppy.
Closing this because it's seemingly already implemented
from uppy.
Related Issues (20)
- Errors in TypeScript definitions when installed with pnpm HOT 5
- Latest version of @uppy/xhr-upload doesn't support PATCH method HOT 11
- aws-s3-multipart + golden retriever HOT 3
- Event listener that fires before file upload process starts HOT 4
- Drag & Drop not working HOT 1
- Uppy Dashboard does not respect the size of the screen HOT 2
- Dashboard progress icon overlaps with `Remove file` button HOT 1
- Allow unique `id` for React `DragDrop` component HOT 1
- Resume failed with aws-s3-multipart and shouldUseMultipart = true option HOT 1
- New provider views + disabling GoogleDrive "shared drives"
- Wrong font in <Dashboard/> example on https://uppy.io/examples HOT 1
- Support for Angular 17 HOT 2
- Adding COMPANION_SECRET does not pick up the secret value HOT 1
- use globalThis rather than window HOT 7
- Minio xml result response ends in new upload retry HOT 4
- [4.x] fa_IR locale missing export default HOT 1
- Implement facebook app secret proof HOT 1
- [4.x] Dashboard doneButtonHandler resets parent state (without re-render) HOT 4
- Documentation - "locale" option for Dashboard HOT 1
- Dropbox file selection issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uppy.