Instead of sending your files using the form (multidata over HTTP POST), you can send your files using Javascript using the HTTP PUT method to your server.
This scenario is described in the official PHP documentation -> PUT Method Support .
Due to some of the limitations described in the documentation, you have to take some workarounds in order to be able to work correctly.
You can read the direct input stream from your web server. Data will be transferred from your web server to your PHP program and will only be stored in memory. To make an Ajax PUT call with jQuery, an answer was received here . You can use the plugin to download jQuery like Uploadify .
source share