dangerwillrobinsondanger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Aug-17 19:03 UTC
zipping a file after upload, file_column
I''m using file_column and I''m not sure where to put code for zipping (compressing) a file. I want to upload an audio file, but compress it as a .zip file before saving. That way I can force downloads rather than having audio files load in visitor browsers. question is: Where do put code to do the zipping, so that it occurs before the file is saved? I want the database entry to show the path to the zip file and not to any original. I don''t mind if the original ends up in the temp directory that file_column uses, but I don''t want the original file in the file_column generated directory, I want that to be the zipped file. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
dangerwillrobinsondanger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Aug-19 20:33 UTC
Re: zipping a file after upload, file_column
I guess nobody knows? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---