This is impossible.
Sending data via an ajax call is not supported from browsers.
The accepted workaround is to post the file in a hidden iframe in the background (so it looks like ajax). The solution here is to find your 'ajax file upload' library of choice and use that to upload the file.