To upload a video using the functionality of the ajax, what do I need to put inside the data field of ajax function?
<input type='file' accept='video/*' />
<button type="submit" class="btn btn-default" id='uploadmatch'>upload</button>
$('#uploadmatch').click(function(event) {
event.preventDefault();
$.ajax( {
url : 'http://localhost:8081/Football/UploadMatch',
type : 'POST'
data : {}
})
.done(function(message) {
});
});