-
I'm using Uppy with Shrine, very happily. However, I'd really like to add the "URL" uploader that lets me upload just by pasting a link to the file. That uses Uppy Companion on the server side to do it. There are a couple of mentions of Companion in the code and issues for Shrine, which imply that the presign endpoint can be used to support Companion requests somehow; but I'm not at all clear on how that works, or whether Shrine can even support what I want to do. Is there any guidance out there on how to properly get Shrine to pretend to be Companion? I really don't want to have to run another express app alongside my Ruby app... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Shrine's presign endpoint and uppy-s3_multipart gem reimplement certain parts of Uppy companion in Ruby. The Ruby endpoints quack like the Uppy Companion endpoints, so Uppy doesn't mind. It seems you would need to reimplement the |
Beta Was this translation helpful? Give feedback.
Shrine's presign endpoint and uppy-s3_multipart gem reimplement certain parts of Uppy companion in Ruby. The Ruby endpoints quack like the Uppy Companion endpoints, so Uppy doesn't mind.
It seems you would need to reimplement the
/url/meta
and/url/get
endpoints from the Companion, here is the controller – https://github.com/transloadit/uppy/blob/main/packages/%40uppy/companion/src/server/controllers/url.js. Then you need to setcompanionUrl
to your app in theUrl
plugin settings.