Shrineで外部の画像のURLからストレージ(S3など)にアップロードしたい
remote_url を利用する。
attacher = Shrine::Attacher.new(cache: :cache, store: :store) attacher.remote_url = "https://path/to/image.jpg" This post is licensed under CC BY 4.0 by the author.
remote_url を利用する。
attacher = Shrine::Attacher.new(cache: :cache, store: :store) attacher.remote_url = "https://path/to/image.jpg"