title: How to call UploadHandler.php with PHP - blueimp jQuery File Upload
body: <p>Does anyone know how to upload images using PHP and calling the UploadHandler.php?</p>
  
  <p>I'm not sure what information needs to be passed and in what format.</p>
  
  <p>Here's what I have so far:</p>
  
  <pre><code>$prop="test";
  session_id($prop);
  @session_start();
  $url = 'http://christinewilson.ca/wp-content/uploads/2013/02/port_rhdefence.png';
  $file_name[] = file_get_contents($url);
  
  error_reporting(E_ALL | E_STRICT);
  require('UploadHandler.php');
  $upload_handler = new UploadHandler(array(
      'user_dirs' =&gt; true
  ));
  </code></pre>