All threads / How do I duplicate or move a carrierwave image that's stored on S3?

Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I duplicate or move a carrierwave image that's stored on S3?

Josh Zandman asked in Rails

Media page for controller:
User can upload an image.
User can also create a folder.
I want the user to have the choice to either move or copy the uploaded image into the folder.

I've looked around for a few hours and closest solution I found was this gem: https://github.com/equivalent/copy_carrierwave_file but I don't understand how to use it in my situation - there are no docs, just a quick setup example.

Any ideas?
Thanks!!

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,399+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.