Do you want the complete or success property? You are confusing the xhr object's .done()
with ajax setup property complete:
or success:
I think.
Done's second parameter is a status, not the data.
Try this instead
$(document).ready(function() {
$('#fileupload').fileupload({
dataType: 'json',
url: '/Admin/Image/UploadFiles',
autoUpload: true,
success: function (data, status, xhr) {
alert(data.message);
if (data.message== 'success') {
alert(data.message);
window.location = "www.google.com";
}
}
})