Hi, I''m using the carrierwave to upload images and pdf in my application, and I''d like to upload docs and zips too. I''m already put this formats as extensions allowed, but when I try upload this kind of files, I get the error *failed to be processed*. Someone know how I do for get the upload of these files work with carrierwave? Thanks! -- *Fernando Aureliano* -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I am having the same issue. The problem is that it is treating ALL files as images(in my case rmagick) and attempting to process them. So far, I have not been able to determine how to process only image extensions. I have 2 fields setup, one for images one for binary files. somehow I need to configure so rmagick only applies to images. Pete On Jun 16, 8:42 am, Fernando Aureliano <m...-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote:> Hi, > > I''m using the carrierwave to upload images and pdf in my application, and > I''d like to upload docs and zips too. > > I''m already put this formats as extensions allowed, but when I try upload > this kind of files, I get the error *failed to be processed*. > > Someone know how I do for get the upload of these files work with > carrierwave? > > Thanks! > > -- > *Fernando Aureliano*-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
OK a couple of things you can try. The first is located here https://gist.github.com/995663 The above solution seemed fine, but I did not test and instead opted to create a new uploader rails g uploader Doc rails g uploader Image Then I configured the ImageUploader to use rmagick in the Model mount_uploader :doc, DocUploader mount_uploader :image, ImageUploader This allows me to use the image uploader to process images with rmagick and non image files use the DocUploader On Jun 16, 8:42 am, Fernando Aureliano <m...-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> wrote:> Hi, > > I''m using the carrierwave to upload images and pdf in my application, and > I''d like to upload docs and zips too. > > I''m already put this formats as extensions allowed, but when I try upload > this kind of files, I get the error *failed to be processed*. > > Someone know how I do for get the upload of these files work with > carrierwave? > > Thanks! > > -- > *Fernando Aureliano*-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks! =D On Mon, Jun 20, 2011 at 4:33 AM, Pete <ghar-ZQk49NHuUFDi/gmLfIWLuQ@public.gmane.org> wrote:> OK a couple of things you can try. > The first is located here https://gist.github.com/995663 > > The above solution seemed fine, but I did not test and instead opted > to create a new uploader > > rails g uploader Doc > rails g uploader Image > > Then I configured the ImageUploader to use rmagick > > in the Model > > mount_uploader :doc, DocUploader > mount_uploader :image, ImageUploader > > > This allows me to use the image uploader to process images with > rmagick > and non image files use the DocUploader > > On Jun 16, 8:42 am, Fernando Aureliano <m...-7WGqr3rU1tU38Fpv8Ij67aBKnGwkPULj@public.gmane.org> > wrote: > > Hi, > > > > I''m using the carrierwave to upload images and pdf in my application, and > > I''d like to upload docs and zips too. > > > > I''m already put this formats as extensions allowed, but when I try upload > > this kind of files, I get the error *failed to be processed*. > > > > Someone know how I do for get the upload of these files work with > > carrierwave? > > > > Thanks! > > > > -- > > *Fernando Aureliano* > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- *Fernando Aureliano* -------------------------------------------------------------- [iOSDeveloper] - *ObjectiveC* [WebDesigner] - *CSS3&HTML5* *[WebDeveloper] - RubyOnRails* *-------------------------------------------------------------- * [portfolio] <http://www.fernandoaureliano.com> - [blog]<http://www.fernandoaureliano.com/> - [personal blog] <http://www.obsessivocompulsivo.com/> - [twitter]<http://twitter.com/Pailoro> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.