title: Sails.js upload huge base64 image
body: <p>I have a form with input which value is data URI of image like  <code>"data:image/jpg;base64,/9j xxxxxxx...".</code></p>
  
  <p>That value is given to input when user crops image using this -> <a href="http://fengyuanchen.github.io/cropper/" rel="nofollow">http://fengyuanchen.github.io/cropper/</a>
  So on dragend event I fill in input value with getDataURL...</p>
  
  <p>On form submit, data goes to controller where I do stuff with dataURI to get extension, base64 string etc...</p>
  
  <p>Then I'm writing that base64 to a file with something like:</p>
  
  <pre><code>fs.writeFile(fileRoot+filePathAndName, imageBase64, 'base64', function (err) { ...
  </code></pre>
  
  <p>Everything works flawlessly. But... When I use larger images (>500kb so not that large infact) I get this error:</p>
  
  <pre><code>Unable to parse HTTP body- error occurred :: [Error: EUNFNTEX: Timed out waiting for known text parameters to finish streaming their bytes into the server.]
  </code></pre>
  
  <p>It's interesting that it always works on localhost :( Even with huge images.</p>
  
  <p>Does anyone have an idea how can I make this work? Or even better suggest a way how this could be done using skipper or a nice service...</p>
  
  <p>I'm using SailsJS v0.10.5 on node v0.10.33</p>