tag:blogger.com,1999:blog-165807313160822069.post8613787183944296101..comments2024-01-22T04:01:01.636-05:00Comments on Ubuntu: A Love/Hate Relationship: Rails and Processing Uploaded .zip FilesRob Brittonhttp://www.blogger.com/profile/06467713562648469830noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-165807313160822069.post-5129350985972391492009-06-08T14:03:47.813-04:002009-06-08T14:03:47.813-04:00Thanks for the help
I were looking for how to writ...Thanks for the help<br />I were looking for how to write the UploadedStringIO data into a file, It was so easy just run "read", but rails documentation is so poor, sometimes you dont find nothing.andreduraohttps://www.blogger.com/profile/09308317379850857387noreply@blogger.comtag:blogger.com,1999:blog-165807313160822069.post-3340512590318038252009-04-06T10:18:00.000-04:002009-04-06T10:18:00.000-04:00thank you! i was having this exact same problem wi...thank you! i was having this exact same problem with my site. cheers to your helpful code snippet! i was starting to get stressed out ha ha but now i'm happy again :-) i owe you!katch wreckhttps://www.blogger.com/profile/01288070503212510131noreply@blogger.comtag:blogger.com,1999:blog-165807313160822069.post-66091808585830849742009-02-06T19:46:00.000-05:002009-02-06T19:46:00.000-05:00Glad to be of help! But remember the little gotcha...Glad to be of help! But remember the little gotcha I mentioned, if the file is small then Rails will not actually save it to a file. The IO class doesn't actually have a path method so your code will crash on files under 10kb.Rob Brittonhttps://www.blogger.com/profile/06467713562648469830noreply@blogger.comtag:blogger.com,1999:blog-165807313160822069.post-51742020661349057542009-02-06T18:30:00.000-05:002009-02-06T18:30:00.000-05:00Just to let you know, your post helped me realize ...Just to let you know, your post helped me realize that I can pass ImageScience the Rails Temp File directly.<BR/><BR/>ImageScience.with_image(uploaded_image.path) do |img|CAAhttps://www.blogger.com/profile/07473853959279354951noreply@blogger.com