Assuming you are using jquery (if you are not, ignore this answer):
Using jquery's get or post functions tend to be problematic for file uploads, it's best to use the ajax function so you can pass all desired options:
yourOnSubmitHandlerFunction() {
//make form object with specific enctype
var form = document.createElement('form');
form.enctype = "application/x-www-form-urlencoded";
//FormData object to store all form key/values
var formdata = new FormData(form);
//get file data
var file = document.getElementById('image_upload_input_id').files[0];
//append file data
if (file) {
formdata.append('image_input_name', file);
}
//append other inputs
formdata.append('input1_name', val);
formdata.append('input2_name', val);
//submit form to remote file with POST
$.ajax("phpfile.php", {
type: "POST",
data: formdata,
cache: false,
contentType: false,
processData: false,
success: function(data, textStatus){ /* Success */ }
});
});