<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Attaching local or remote files to Paperclip and Milton Models in Rails (Mocking content_type and original_filename in a Tempfile)</title>
	<atom:link href="http://coryodaniel.com/index.php/2010/03/05/attaching-local-or-remote-files-to-paperclip-and-milton-models-in-rails-mocking-content_type-and-original_filename-in-a-tempfile/feed/" rel="self" type="application/rss+xml" />
	<link>http://coryodaniel.com/index.php/2010/03/05/attaching-local-or-remote-files-to-paperclip-and-milton-models-in-rails-mocking-content_type-and-original_filename-in-a-tempfile/</link>
	<description>Software development, thoughts, and randomness</description>
	<lastBuildDate>Fri, 17 Feb 2012 10:23:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Trey</title>
		<link>http://coryodaniel.com/index.php/2010/03/05/attaching-local-or-remote-files-to-paperclip-and-milton-models-in-rails-mocking-content_type-and-original_filename-in-a-tempfile/comment-page-1/#comment-435</link>
		<dc:creator>Trey</dc:creator>
		<pubDate>Mon, 15 Aug 2011 00:11:59 +0000</pubDate>
		<guid isPermaLink="false">http://coryodaniel.com/?p=495#comment-435</guid>
		<description>Thanks for posting this Corey. Ran into a situation where I needed to fetch and process remote images from Facebook with Paperclip and this helped me out tremendously.</description>
		<content:encoded><![CDATA[<p>Thanks for posting this Corey. Ran into a situation where I needed to fetch and process remote images from Facebook with Paperclip and this helped me out tremendously.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SimonC</title>
		<link>http://coryodaniel.com/index.php/2010/03/05/attaching-local-or-remote-files-to-paperclip-and-milton-models-in-rails-mocking-content_type-and-original_filename-in-a-tempfile/comment-page-1/#comment-323</link>
		<dc:creator>SimonC</dc:creator>
		<pubDate>Sat, 12 Feb 2011 16:21:27 +0000</pubDate>
		<guid isPermaLink="false">http://coryodaniel.com/?p=495#comment-323</guid>
		<description>Thanks very much for this - I didn&#039;t have a problem with #original_filename and #content_type being missing (they seem to be present for me even with manually created Tempfiles), but I was wrestling with forcing a nice filename* for the upload without rolling my own temp file solution; I hadn&#039;t realised it was as simple as overriding the #original_filename method.</description>
		<content:encoded><![CDATA[<p>Thanks very much for this &#8211; I didn&#8217;t have a problem with #original_filename and #content_type being missing (they seem to be present for me even with manually created Tempfiles), but I was wrestling with forcing a nice filename* for the upload without rolling my own temp file solution; I hadn&#8217;t realised it was as simple as overriding the #original_filename method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory O'Daniel</title>
		<link>http://coryodaniel.com/index.php/2010/03/05/attaching-local-or-remote-files-to-paperclip-and-milton-models-in-rails-mocking-content_type-and-original_filename-in-a-tempfile/comment-page-1/#comment-314</link>
		<dc:creator>Cory O'Daniel</dc:creator>
		<pubDate>Tue, 25 Jan 2011 01:59:47 +0000</pubDate>
		<guid isPermaLink="false">http://coryodaniel.com/?p=495#comment-314</guid>
		<description>Not sure it works exactly... using the &#039;open&#039; method you would still be missing the &#039;original_filename&#039; method...</description>
		<content:encoded><![CDATA[<p>Not sure it works exactly&#8230; using the &#8216;open&#8217; method you would still be missing the &#8216;original_filename&#8217; method&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maximilian Schulz</title>
		<link>http://coryodaniel.com/index.php/2010/03/05/attaching-local-or-remote-files-to-paperclip-and-milton-models-in-rails-mocking-content_type-and-original_filename-in-a-tempfile/comment-page-1/#comment-312</link>
		<dc:creator>Maximilian Schulz</dc:creator>
		<pubDate>Wed, 19 Jan 2011 12:32:55 +0000</pubDate>
		<guid isPermaLink="false">http://coryodaniel.com/?p=495#comment-312</guid>
		<description>I am sorry, but there is a solution which is far more easy than yours:

require &#039;open-uri&#039;
@imported_user.images.create(:file =&gt; open(url_to_image))</description>
		<content:encoded><![CDATA[<p>I am sorry, but there is a solution which is far more easy than yours:</p>
<p>require &#8216;open-uri&#8217;<br />
@imported_user.images.create(:file =&gt; open(url_to_image))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cornelius</title>
		<link>http://coryodaniel.com/index.php/2010/03/05/attaching-local-or-remote-files-to-paperclip-and-milton-models-in-rails-mocking-content_type-and-original_filename-in-a-tempfile/comment-page-1/#comment-239</link>
		<dc:creator>Cornelius</dc:creator>
		<pubDate>Sun, 06 Jun 2010 21:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://coryodaniel.com/?p=495#comment-239</guid>
		<description>Thanks, needed this for importing images for products in Spree.</description>
		<content:encoded><![CDATA[<p>Thanks, needed this for importing images for products in Spree.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barryezl</title>
		<link>http://coryodaniel.com/index.php/2010/03/05/attaching-local-or-remote-files-to-paperclip-and-milton-models-in-rails-mocking-content_type-and-original_filename-in-a-tempfile/comment-page-1/#comment-229</link>
		<dc:creator>barryezl</dc:creator>
		<pubDate>Thu, 06 May 2010 21:35:24 +0000</pubDate>
		<guid isPermaLink="false">http://coryodaniel.com/?p=495#comment-229</guid>
		<description>Thanks, you just saved me a great deal of hair-pulling.  It&#039;s working great with Paperclip.</description>
		<content:encoded><![CDATA[<p>Thanks, you just saved me a great deal of hair-pulling.  It&#8217;s working great with Paperclip.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

