Use this nginx module: http://www.grid.net.ru/nginx/upload.en.html
It is highly scalable and spools the uploads to disk and does the mime parsing in efficient nginx C code> then once it finishes it just passes some params to your backend processes with the location of the file on disk and you can process it however you want.