title: Is there anyway to upload a file without using temp directory?
body: <p>I created file transfer website using HTML5 chunking file api using http. It works fine, except that during uploading the file, the CPU usage in server is almost 100%. This file transfer will be used to upload file on average around 4GB.</p>
  
  <p>My guess is that it takes cpu usage almost 100% because it try to move the file from tmp directory to destination directory.</p>
  
  <p>Is there anyway to upload a file without using temp directory? </p>
  
  <p>My question is for PHP but other language will be accepted</p>
  
  <p>Here is the result of "top" command during uploading files (18mb, 38mb, 60mb, 33mb)</p>
  
  <pre><code> 1904 apache    20   0 33504 5740 1952 R 28.3  0.2   0:02.19 httpd
   1905 apache    20   0 33504 5740 1952 R 28.3  0.2   0:01.99 httpd
   1903 apache    20   0 33232 6968 3060 R 28.0  0.2   0:01.98 httpd
   1910 apache    20   0 33240 6020 2248 S 11.5  0.2   0:02.85 httpd
   2133 root      20   0  2656 1124  896 R  1.6  0.0   0:00.71 top
      1 root      20   0  2864 1404 1188 S  0.0  0.0   0:03.99 init
  </code></pre>
  
  <p>it shows that httpd take all the resources..
  Is there anyone know what's the problem if it's not because of copying or uploading the files to the server?</p>