I have a problem with remote sources. Before I was housing just drag & drop. Now I want to use remoteSources either but I couldn’t find any step-by-step guidance. I read the documentation, I followed the steps but I stuck on the companion step. Do you have any working examples for remote sources? I think I am also struggling to understand the logic of your system. I hope you can help me.
I have a basic skeleton for drag and drop. I imported RemoteSources into js file and used it. now I can see icons on the front end and when I click other want to upload images from Facebook and Google Drive. I have keys and secrets. I have a node server. then the rest is missing…
I solved it thanks a lot. but now I have one more problem. when I click on any option I get " GET http://companion.example.com:3020/drive/list/root 401 (Unauthorized) fetchWithNetworkError.js:12 " error on the console. I didn’t understand how can I sent a key or secret from Uppy to Companion. How can I catch that key and secret in the Companion? or is the 401 error about that?
You don’t sent a secret from Uppy (then it also wouldn’t be a secret ) but you configure Companion with your secrets. You need to go through the approval process of all providers you want to use and add your key/secret to Companion.
All Companion plugins have docs for how to get started. For example:
If you signup for Transloadit, we give you temporary credentials so you don’t have to wait for the approval of yours to go live.
I already signup for a test.
Maybe I explained myself in the wrong way. I installed Companion on my nodeJs server. I get my keys from Google and Facebook. I used them in providerOptions. In the Dashboard, When I click Google or Facebook, for instance, It gives that error on the console. I mean on “Sign in with Google” before the redirecting page.
Code looks okay. Are you sure you have setup your Google Drive app correctly? 401 indicates Companion successfully attempted to get something but wasn’t allowed, making me think it’s your app settings.
Thank you, Do you think that can be about the Uppy? Because I am sure that keys and secrets are correct. But If there is any specific setting to check I can control it.
here is my uppy app: