# Carrierwave + RMagick - how to upload generated Image? (no form)

**URL:** <https://www.ruby-forum.com/t/carrierwave-rmagick-how-to-upload-generated-image-no-form/209496>\
**Category:** Rails\
**Created:** [July 15, 2011, 12:37am UTC](https://www.ruby-forum.com/t/carrierwave-rmagick-how-to-upload-generated-image-no-form/209496 "2011-07-15T00:37:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [July 15, 2011, 12:37am UTC](https://www.ruby-forum.com/t/carrierwave-rmagick-how-to-upload-generated-image-no-form/209496/1 "2011-07-15T00:37:35Z")

</div>

I have a article\_set, which has many set\_items, each set item has an  
image. I want to create an collage of the images, so one image out of  
many, and save it with carrierwave.

for this, I have a method called “create\_collage” inside my  
article\_sets.rb model, which fires on after\_create.

see this gist with the code

> <https://gist.github.com/tmaximini/1083624>

It works that he generates the image and puts it in the temp folder,  
but whatever I try to upload it from the model through carrierwave,  
nothing gets uploaded and the :blog\_image attribute stays NULL.

Any ideas how to tell the uploader to work off that file?

thank you!
