title: Jquery Plupload big file upload fail
body: <p>im using plupload and php clas for resize <a href="http://www.verot.net/php_class_upload_docs.htm" rel="nofollow">http://www.verot.net/php_class_upload_docs.htm</a></p>
  
  <p>everything goes well, but when i upload big file 4000x2000 px with only 250kb, the upload fails. the class for resize has its on limeter for maximum width and height, but it is set to NULL, so its not checking it for causing cancel of upload.</p>
  
  <p>my code in AJAX handler is this.</p>
  
  <pre><code>$foo = new Upload($_FILES['file']);
      if ($foo-&gt;uploaded)
      {
          $new_name = functions::getRandomString(16);
  
          $foo-&gt;file_new_name_body = 'b_' . $new_name;
          if ($foo-&gt;image_src_x &gt; 800 or $foo-&gt;image_src_y &gt; 600)
          {
          $foo-&gt;image_resize = true;
          $foo-&gt;image_ratio = true;
          $foo-&gt;image_y = 600;
          $foo-&gt;image_x = 800;
          }
          $foo-&gt;image_convert = 'png';
          $foo-&gt;Process($upload_path);
          if ($foo-&gt;processed)
          {
          //echo 'image renamed "foo" copied';
          }
          else
          {
          die('{"jsonrpc" : "2.0", "error" : {"code": 101, "message": "Chyba prejmenovani."}, "id" : "id"}');
          }
  </code></pre>
  
  <p>AND jquery </p>
  
  <pre><code>$("#uploader").pluploadQueue({
      // General settings
      runtimes : 'html5,html4',
      url : '/core/ajax/ajax_upload.php',
      max_file_size : '10mb',
      chunk_size : '5mb',
      unique_names : true,
      /*
      resize : {width : 320, height : 240, quality : 90},
      */
      // Specify what files to browse for
      filters : [
      {
          title : "Image files", 
          extensions : "jpg,jpeg,gif,png"
      }]
  
      });
  </code></pre>
  
  <p>and the JSON response for this concrete file upload session</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;
  &lt;html&gt;&lt;head&gt;
  &lt;title&gt;500 Internal Server Error&lt;/title&gt;
  &lt;/head&gt;&lt;body&gt;
  &lt;h1&gt;Internal Server Error&lt;/h1&gt;
  &lt;p&gt;The server encountered an internal error or
  misconfiguration and was unable to complete
  your request.&lt;/p&gt;
  &lt;p&gt;Please contact the server administrator,
  </code></pre>