title: Sometimes my request comes in as HTML and other times as TEXT/*. Why?
body: <p>I have an AJAX upload action for my Rails app.  Sometimes it comes in as:</p>
  
  <pre><code>Started POST "/products/temp_upload" for 63.148.78.244 at Fri Sep 24 21:34:27 +0000 2010
    Processing by ProductsController#temp_upload as HTML
  </code></pre>
  
  <p>And everything runs smoothly.</p>
  
  <p>Other times it comes in as:</p>
  
  <pre><code>Started POST "/products/temp_upload" for 63.148.78.244 at Fri Sep 24 21:49:35 +0000 2010
    Processing by ProductsController#temp_upload as TEXT/*
  </code></pre>
  
  <p>And I get a 406.</p>
  
  <p>The only consistency I see is that it works on Windows and fails on OS X.  Does anyone know why this is and how to fix it?</p>
  
  <p>Thanks!</p>