See the discussion at File upload blocks memory regardless of UploadHandler
The reader’s digest version is that this is, in general terms, not a good thing to try and do directly. The safest way to handle this is with some JavaScript in the browser to upload the file in chunks.