how are you
please help me to upload vedio and display it in iframe befor upload with java script in asp.net mvc
i con't to displied the video i work by asp.net mvc
please correct the example
this code in view
this code in section ajax
@section Scripts {
$(function () {
/* preview Vidio*/
function readUrl(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$("iframe#ShowVideo")
.attr("src", e.target.result)
.width(200)
//.hight(200);
}
reader.readAsDataURL(input.files[0]);
}
}
$("#videoUpload").change(function () {
readUrl(this);
});
});
Altaf AnsariPosted Feb 7, 2018, 10:55 PM