add sending upload file with JSON to server side