.success(function(data, status, headers, config)

alert("file is uploaded successfully.."+data+"..status.."+status);
// file is uploaded successfully
console.log(data);