 <p>You can use the http put method to handle the file upload. In this method the data is directly streamed to the PHP script and you can handle it using file functions:</p> <pre><code>&lt;?php $f = fopen('php://input','r'); while(!feof($f)){ $chunk = fread($f,CHUNK_SIZE); [Handle the uploading file here] } fclose($f); ?&gt; </code></pre> <p>(Replace CHUNK_SIZE with your value)</p>