<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>All Aboard Rails &#187; attachment_fu</title>
	<atom:link href="http://rails.webintellix.com/tag/attachment_fu/feed/" rel="self" type="application/rss+xml" />
	<link>http://rails.webintellix.com</link>
	<description>Ruby on Rails fun on Windows</description>
	<lastBuildDate>Tue, 29 Jun 2010 04:14:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Attachment_fu size parameter on Windows</title>
		<link>http://rails.webintellix.com/2008/03/13/attachment_fu-size-parameter-on-windows/</link>
		<comments>http://rails.webintellix.com/2008/03/13/attachment_fu-size-parameter-on-windows/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 04:38:51 +0000</pubDate>
		<dc:creator>Rupak Ganguly</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[attachment_fu]]></category>

		<guid isPermaLink="false">http://rupakg.wordpress.com/2008/03/13/attachment_fu-size-parameter-on-windows/</guid>
		<description><![CDATA[Well, long story short, I have been going crazy trying to make attachment_fu upload a image file greater than 10KB in size on Windows. It keeps showing an error message &#8220;Size is not in the list&#8221;. Turns out that the size parameter needs to explicitly set to the following:
has_attachment  :content_type =&#62; :image, :size =&#62; 0.kilobytes..1.gigabytes
The [...]]]></description>
			<content:encoded><![CDATA[<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Frails.webintellix.com%2F2008%2F03%2F13%2Fattachment_fu-size-parameter-on-windows%2F&amp;title=Attachment_fu+size+parameter+on+Windows" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Frails.webintellix.com%2F2008%2F03%2F13%2Fattachment_fu-size-parameter-on-windows%2F&amp;title=Attachment_fu+size+parameter+on+Windows" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Frails.webintellix.com%2F2008%2F03%2F13%2Fattachment_fu-size-parameter-on-windows%2F&amp;title=Attachment_fu+size+parameter+on+Windows" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Frails.webintellix.com%2F2008%2F03%2F13%2Fattachment_fu-size-parameter-on-windows%2F&amp;headline=Attachment_fu+size+parameter+on+Windows" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=Attachment_fu+size+parameter+on+Windows&amp;url=http%3A%2F%2Frails.webintellix.com%2F2008%2F03%2F13%2Fattachment_fu-size-parameter-on-windows%2F" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=Attachment_fu+size+parameter+on+Windows&amp;u=http%3A%2F%2Frails.webintellix.com%2F2008%2F03%2F13%2Fattachment_fu-size-parameter-on-windows%2F" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=Attachment_fu+size+parameter+on+Windows&amp;url=http%3A%2F%2Frails.webintellix.com%2F2008%2F03%2F13%2Fattachment_fu-size-parameter-on-windows%2F" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=Attachment_fu+size+parameter+on+Windows&amp;url=http%3A%2F%2Frails.webintellix.com%2F2008%2F03%2F13%2Fattachment_fu-size-parameter-on-windows%2F" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=Attachment_fu+size+parameter+on+Windows&amp;url=http%3A%2F%2Frails.webintellix.com%2F2008%2F03%2F13%2Fattachment_fu-size-parameter-on-windows%2F" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Frails.webintellix.com%2F2008%2F03%2F13%2Fattachment_fu-size-parameter-on-windows%2F&amp;title=Attachment_fu+size+parameter+on+Windows&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Frails.webintellix.com%2F2008%2F03%2F13%2Fattachment_fu-size-parameter-on-windows%2F" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Frails.webintellix.com%2F2008%2F03%2F13%2Fattachment_fu-size-parameter-on-windows%2F" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Frails.webintellix.com%2F2008%2F03%2F13%2Fattachment_fu-size-parameter-on-windows%2F" ><img class="lightsocial_img" src="http://rails.webintellix.com/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div><p>Well, long story short, I have been going crazy trying to make <a href="http://svn.techno-weenie.net/projects/plugins/attachment_fu/">attachment_fu</a> upload a image file greater than 10KB in size on Windows. It keeps showing an error message &#8220;Size is not in the list&#8221;. Turns out that the size parameter needs to explicitly set to the following:</p>
<p><span style="font-family: Courier New; color: #80ff00;">has_attachment  :content_type =&gt; :image, :size =&gt; 0.kilobytes..1.gigabytes</span></p>
<p>The important part is that you have to specify the minimum limit as <span style="font-family: Courier New; color: #80ff00;">0.kilobytes</span> or it will not work.</p>
<p>Checkout some of the other <a href="http://hamptoncatlin.com/2007/attachment_fu-gotchas">attachment_fu gotchas</a>.</p>
<div class="wlWriterSmartContent" style="display:inline;margin:0;padding:0;">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/plugins">plugins</a>,<a rel="tag" href="http://technorati.com/tags/attachment_fu">attachment_fu</a>,<a rel="tag" href="http://technorati.com/tags/windows">windows</a>,<a rel="tag" href="http://technorati.com/tags/issues">issues</a></div>
]]></content:encoded>
			<wfw:commentRss>http://rails.webintellix.com/2008/03/13/attachment_fu-size-parameter-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
