All of the examples I have found for acts_as_attachment have been for images and thumbnails. I have not found alot of good documentation on this. The techno weenie site has some documentation but it''s not complete. I was not really able to figure out image uploads completely until I used the example in the Rails cookbook. I am not finding good examples for mp3 uploads and am considering trying to do it in a more primitive way. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You don''t need to be uploading images to use acts_as_attachment. I''m using it to upload any type of file right out of the box and I don''t have RMagik installed. -Michael http://javathehutt.blogspot.com On Feb 11, 2007, at 11:28 AM, surfivor wrote:> > > All of the examples I have found for acts_as_attachment have been for > images and thumbnails. I have not found alot of good documentation on > this. The techno weenie site has some documentation but it''s not > complete. I was not really able to figure out image uploads completely > until I used the example in the Rails cookbook. I am not finding good > examples for mp3 uploads and am considering trying to do it in a more > primitive way. > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 11, 4:02 pm, Michael Kovacs <kov...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> You don''t need to be uploading images to use acts_as_attachment. I''m > using it to upload any type of file right out of the box and I don''t > have RMagik installed. > > -Michaelhttp://javathehutt.blogspot.com > > On Feb 11, 2007, at 11:28 AM, surfivor wrote: > > >What do you set :content_type to be ? I may try it, I was affraid I would code up a bunch of stuff only to find myself stumped on why it wasn''t working. Other than content_type I''m not sure what else might be different ? --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 11, 4:02 pm, Michael Kovacs <kov...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> You don''t need to be uploading images to use acts_as_attachment. I''m > using it to upload any type of file right out of the box and I don''t > have RMagik installed. >Are you developing on unix or windows ? I am also concerned with problems on windows which is probably not as well supported for new stuff. I develop my stuff on windows and then upload to a unix server. There is some messages that say this acts_as is under heavy dev and I had a problem with the thumbnail part of the image upload not working so I had to write some of my own custom code for that. If I get stuck with a problem, I haven''t got alot of documentation resources to figure it out and I want to get this done. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> What do you set :content_type to be ? I may try it, I was affraid I > would code up a bunch of stuff only to find myself stumped on why it > wasn''t working. > Other than content_type I''m not sure what else might be different ?The content_type option is only for validations to restrict what''s allowed. You can leave it empty, or set it to the various mp3 content types if you like. -- Rick Olson http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> Are you developing on unix or windows ? I am also concerned with > problems on windows which is probably not as well supported for new > stuff. I develop my stuff on windows and then upload to a unix server. > There is some messages that say this acts_as is under heavy dev and I > had a problem with the thumbnail part of the image upload not working > so I had to write some of my own custom code for that. If I get stuck > with a problem, I haven''t got alot of documentation resources to > figure it out and I want to get this done.The plugin is not new by any means. Its roots began with Mephisto about a year ago, and I''ve personally used it in several projects in a variety of uses. It contains a lot of unit tests to cover its functionality. Course, it''s not perfect, so tested patches are welcome. I recently completed a major refactoring called attachment_fu, which is what I use now in all my projects. It works nearly the same way, but is more flexible with processors/backends. You can now save attachments to s3 (sort of experimental still), or write your own custom backend to process MP3 info data (as an example). -- Rick Olson http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Cheers, > You can now save > attachments to s3 (sort of experimental still), Ha, since two weeks there is a ''extend acts_as_attachment to serve S3 backed files'' on my todo list :-) Hopefully I will get to play with your code this week and give you some feedback. Regards, Jonathan -- Jonathan Weiss http://blog.innerewut.de --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 2/11/07, Jonathan Weiss <jw-eM0Q5iXcOashFhg+JK9F0w@public.gmane.org> wrote:> > Cheers, > > > You can now save > > attachments to s3 (sort of experimental still), > > Ha, since two weeks there is a ''extend acts_as_attachment to serve S3 > backed files'' on my todo list :-) > > Hopefully I will get to play with your code this week and give you some > feedback. > > Regards, > JonathanIt''s not my code actually, I haven''t done much more than run the remote tests against ParkPlace :) But yes, feedback/patches are more than welcome :) -- Rick Olson http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hunter Hillegas
2007-Feb-11 23:21 UTC
Re: acts_as_attachment or similar to upload mp3''s ?
I''ve been using it in several apps and once we got a few things straightened, it''s been working great. It''s a nice convenience. On Feb 11, 2007, at 3:15 PM, Rick Olson wrote:>> >> Ha, since two weeks there is a ''extend acts_as_attachment to serve S3 >> backed files'' on my todo list :-) >> >> Hopefully I will get to play with your code this week and give you >> some >> feedback. >> >> Regards, >> Jonathan > > It''s not my code actually, I haven''t done much more than run the > remote tests against ParkPlace :) But yes, feedback/patches are more > than welcome :)--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 11, 4:48 pm, "Rick Olson" <technowee...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Are you developing on unix or windows ? I am also concerned with > > problems on windows which is probably not as well supported for new > > stuff. I develop my stuff on windows and then upload to a unix server. > > There is some messages that say this acts_as is under heavy dev and I > > had a problem with the thumbnail part of the image upload not working > > so I had to write some of my own custom code for that. If I get stuck > > with a problem, I haven''t got alot of documentation resources to > > figure it out and I want to get this done. > > The plugin is not new by any means. Its roots began with Mephisto > about a year ago, and I''ve personally used it in several projects in a > variety of uses. It contains a lot of unit tests to cover its > functionality. Course, it''s not perfect, so tested patches are > welcome. > > I recently completed a major refactoring called attachment_fu, which > is what I use now in all my projects. It works nearly the same way, > but is more flexible with processors/backends. You can now save > attachments to s3 (sort of experimental still), or write your own > custom backend to process MP3 info data (as an example). > > -- > Rick Olsonhttp://weblog.techno-weenie.nethttp://mephistoblog.comHey, thanks. Here is a question. After I finish this stuff I am working on I may try to do work on another site that is partly finished. A friend of mine may want to upload records as a spreadsheet instead of through an upload form. I may want to make it flexible to work both ways however. If she uploads using a spreadsheet. The spreadsheet would have file names in one column, but I would actually upload the files to a directory and the load the spreadsheet. I''m guessing if I want to still use acts_as_attachment that it may complicate things. Possibly I would have a base class and the one parent class for attachement and another for spreadsheet upload. I''m not sure, but that may all be farther down the road. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> Hey, thanks. Here is a question. After I finish this stuff I am > working on I may try to do work on another site that is partly > finished. A friend of mine may want to upload records as a spreadsheet > instead of through an upload form. I may want to make it flexible to > work both ways however. If she uploads using a spreadsheet. The > spreadsheet would have file names in one column, but I would actually > upload the files to a directory and the load the spreadsheet. I''m > guessing if I want to still use acts_as_attachment that it may > complicate things. Possibly I would have a base class and the one > parent class for attachement and another for spreadsheet upload. I''m > not sure, but that may all be farther down the road.The plugin is for storing attachments. It sounds like you just want to read and throw the spreadsheet away. -- Rick Olson http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 12, 2:38 am, "Rick Olson" <technowee...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hey, thanks. Here is a question. After I finish this stuff I am > > working on I may try to do work on another site that is partly > > finished. A friend of mine may want to upload records as a spreadsheet > > instead of through an upload form. I may want to make it flexible to > > work both ways however. If she uploads using a spreadsheet. The > > spreadsheet would have file names in one column, but I would actually > > upload the files to a directory and the load the spreadsheet. I''m > > guessing if I want to still use acts_as_attachment that it may > > complicate things. Possibly I would have a base class and the one > > parent class for attachement and another for spreadsheet upload. I''m > > not sure, but that may all be farther down the road. > > The plugin is for storing attachments. It sounds like you just want > to read and throw the spreadsheet away. > > --Hi Rick, It''s sort of like this. The spreadsheet would have the file name of a jewlry item jpeg like a bracelette as well as other information. I would actually upload the image jpegs for the bracelettes to a directory using ftp or similar. The program would then build the records from the spreadsheet and figure out which jpeg goes with which record using the filename field However, it might mean there is no other way to enter jewlry items using forms. Ideally it might be nice to be able to enter the jewlry records both ways, from a spreadsheet/ ftp load or the usual way. This is not my current project, but I may end up working on it sometime soon. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---