i am trying file uploading to php my server.file and data uploading through multi part /form-data ,the file and data received on php server but in my php server return json
You should probably use an AJAX call. Here's a solution using jQuery:
In order to redirect the user, you can use: window.location.href = " ... your_url ...";
window.location.href = " ... your_url ...";
Here's an explanation on how to use jQuery AJAX and multi-part data:
Sending multipart/formdata with jQuery.ajax