psoldier

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in How to use Uppy with ActiveStorage Discussion

great episode Chris!

I would like to know who do you manage the external plugins with Companion.

For example: I tried to use the most simple plugin: URL (it doesn't need extra configs)

I created a repo with a simple version of the companion server
https://github.com/psoldier/companion

this is the js in my project:

const companionUrl = 'http://localhost:3020';
uppy.use(Url, { target: Dashboard, companionUrl: companionUrl });

mine: config/initializers/content_security_policy.rb

srcs += ["http://localhost:3020"]
policy.connect_src :self, :https, *srcs

However at this point I'm facing two issues:
1- I cannot send the picture to my s3 bucket (this is something with companion)
2- I don't know what approach handle to connect the that picture with ActiveStorage