Switching from Carrierwave to Transloadit

Richardson Dackam's Avatar

Richardson Dackam

04 Apr, 2014 02:14 AM

Do you guys have a written process or suggestion on how to move your assets from using carrierwave to transloadit?
When I unmount Carrierwave I loose the S3 path.

  1. Support Staff 1 Posted by Kevin van Zonne... on 04 Apr, 2014 09:35 AM

    Kevin van Zonneveld's Avatar


    I'm sorry to say that we don't. This is a pretty specific domain and I think you may have better luck asking on StackOverflow.
    If there is a specific question about our service we're more than happy to help you out.

    One suggestion that comes to mind about this issue is that Transloadit accepts path variables that allow you to contruct S3 paths in a variety of ways. Maybe it's possible to construct a path mimicking Carrierwave's? But we're really don't know Carrierwave that well. Again, if you have a more detailed question we might be able to be more helpful.

    Kind regards,

  2. 2 Posted by Robin Mehner on 04 Apr, 2014 11:38 AM

    Robin Mehner's Avatar

    Hey there,

    this is Robin, I help to maintain the ruby-sdk and rails-sdk of transloadit and I know carrierwave a bit, so I might be able to help :)

    What exactly do you want to achieve? Do you want to reprocess the existing assets by Transloadit (which would make sense if you have new formats or anything like that)? If not, why not go through each asset and save the S3 path to your database and unmount carrierwave then.

    Maybe you could go a bit more into detail, I'm sure we can help :)

  3. 3 Posted by Richardson Dx on 04 Apr, 2014 03:48 PM

    Richardson Dx's Avatar

    Hi Robin,

    Thank you for the prompt reply.

    Before I start I would like to mention that: I've been able to upload my
    images onto transloadit with my assembler but exporting that asset to S3
    and retrieving the S3 public path been a challenge.

    *My Issue in details:*

    I currently have my app set up with Carrierwave + Fog + S3.
    It is hosted on Heroku, so no centralized tmp directory, This is why I
    couldn't use carrierwave_backgrounder and decided to use either cloudinary
    or your service.

    I've started implementing transloadit but I ran into the following issue:
    - I already have assets on my production server that are using CArrierwave
    + fog + S3.
    Switching to transloadit will affect the path of the directory because I
    can't use the same bucket I am using with carrierave (When I created my
    bucket I used uppercaseand transloadit won't accept bucket with uppercase
    letters; so I had to create a new bucket only using lowercase and therefore
    following the DNS standard).

    I currently have 3 challenges
    - *Migrating all my current assets to my new bucket *( that i am using with
    - *Reprocessing all the path of my images so that they match the
    transloadit bucket.*
    - When I unmount Carrierwave in the model, the full path of the images is
    gone and if I assign that fullpath to a different column on that table; for
    instance "model.old_picutre_path" ; that path won't work because it works
    with a signature and expire. So I am trying to figure out how to *download
    the assets back to directly "Reprocess" it with Transloadit and assign the
    new path to model.picture or model.picture.url*

    Kind regards,
    - Richardson

  4. 4 Posted by Robin Mehner on 08 May, 2014 02:21 PM

    Robin Mehner's Avatar

    Hi Richardson,

    sorry that this took so long. I'm working with Transloadit on a better documentation for this, because it's actually a quite common migration.

    If I understand you correctly, I'd introduce a new property on the model and iterate over all existing assets getting their current path and move them to the new path. You don't need to reprocess them, you simply have to move/copy it to your new bucket (this should be doable with fog alone) and set the new path on your asset. Once you've done that, you can drop the old property and rename the new one to match the previous one.

    Do you have multiple versions per asset? (like different sizes?) Also can you give an example of how a current asset path looks like and how it should like after that?

  5. Support Staff 5 Posted by Tim Koschützki on 13 May, 2014 10:12 AM

    Tim Koschützki's Avatar

    Hey Richardson,

    did you see Robin's reply from above?

    Kind regards,

    Co-Founder Transloadit

  6. Support Staff 6 Posted by Tim Koschützki on 20 Jun, 2014 06:49 AM

    Tim Koschützki's Avatar

    Closing this for now. If you need more help, please feel free to re-open this issue.

    Kind regards,

    Co-Founder Transloadit

  7. Tim Koschützki closed this discussion on 20 Jun, 2014 06:49 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

20 Nov, 2016 02:52 AM
29 Oct, 2015 05:01 AM
27 Oct, 2015 05:01 AM
27 Oct, 2015 05:01 AM
26 Oct, 2015 05:03 AM


26 Oct, 2015 05:02 AM
26 Oct, 2015 05:02 AM
26 Oct, 2015 05:02 AM
26 Oct, 2015 05:02 AM
26 Oct, 2015 05:02 AM
26 Oct, 2015 05:01 AM