$('#image').on('change', function () {
var url = "";
var form = new FormData();
form.append("file", this.files[0]);
var settings = {
"url": url,
"method": "POST",
"timeout": 0,
"headers": {
deviceType:"5",
deviceId:md5("navigator.userAgent")
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
})