title: 413 Request Entity Too Large when sending image data
body: <p>A part of my site takes an image from an HTML5 canvas using the method</p>
  
  <pre><code> .toDataURL()
  </code></pre>
  
  <p>and then sends the raw data as part of a POST message to my server, with AJAX.
  On the server side, I have a cgi script expecting the long data string. 
  I am consistently getting this error:</p>
  
  <pre><code> 413 (Request Entity Too Large) 
  </code></pre>
  
  <p>I'm using the perl CGI library, and I do not have </p>
  
  <pre><code> $CGI::POST_MAX 
  </code></pre>
  
  <p>set, or </p>
  
  <pre><code>  $CGI::DISABLE_UPLOADS
  </code></pre>
  
  <p>set. 
  Is this due to restrictions that are set in the server? I am using apache, and nginx as a proxy server. My worry is that I won't be able to get around this issue, since I'm writing my site to be installed on a bluehost server. Basically I have two questions:
  1. is there a way to use an html5 canvas method to create a file-upload type post request to the server?
  2. Is there any way around this 413 Error that doesn't involve messing with Apache/Nginx (or some other server) configurations?</p>