$('#upload-image').on('submit',(function(e) {
e.preventDefault();
var formData = new FormData();
formData.append('image',$('#image')[0].files[0]);
$.ajax({
type:'POST',
url: './modules/image-update-handler.php',
data: formData,
cache:false,
contentType: false,
processData: false,
success:function(data){console.log('success');},
error:function(data){console.log('error');}
});
}));