It's highly recommended to avoid sending entire file to the web server beacause the entire file is loaded into web server process memory.If you need to upload large files you need to capture them them chunk by chunk.
Here's possible solution for your problem. :)