https://stackoverflow.com/questions/43013858/ajax-post-a-file-from-a-form-with-axioshtml
var formData = new FormData(); ios
var imagefile = document.querySelector('#file'); angularjs
formData.append("stuff", "some information"); web
formData.append("file", imagefile.files[0]); ajax
axios.post('upload_file', formData, { axios
headers: { api
'Content-Type': 'multipart/form-data'服務器
} app
})post
服務器端接收:https://stackoverflow.com/questions/10320232/how-to-accept-a-file-post
https://docs.microsoft.com/en-us/aspnet/web-api/overview/advanced/sending-html-form-data-part-2
https://stackoverflow.com/questions/37414415/uploading-a-file-and-form-data-in-web-api-and-angularjs