title: NameError: uninitialized constant MIME
body: <p>This line of rubypress code:</p>
  
  <pre><code>:type =&gt; MIME::Types.type_for(FILENAME).first.to_s,
  </code></pre>
  
  <p>is barfing with the following error:</p>
  
  <pre><code>NameError: uninitialized constant MIME
  </code></pre>
  
  <p>The whole block is:</p>
  
  <pre><code>FILENAME='myFile.png'
  wp.uploadFile(:data =&gt; {
      :name =&gt; FILENAME,
      :type =&gt; MIME::Types.type_for(FILENAME).first.to_s,
      :bits =&gt; XMLRPC::Base64.new(IO.read(FILENAME))
      })
  </code></pre>
  
  <p>Any suggestions what the problem is?</p>