var formData = new FormData(); var file = $('#fileID')[0]; formData.append('file', file.files[0]); $.ajax({ url: '/api/document/uploads/', type: 'POST', data: formData, contentType: false, processData: false, success: function (result) { }, error: function (result) { } });
[HttpPost] [Route("api/document/uploads")] public async Task<object> UploadDoc() { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)