Preview Files (.doc and .pdf) before Upload in ASP.Net

Last Reply 6 days ago By pandeyism

Posted 6 days ago

I have this code which shows preview of image as soon as its user gives path how can add the same with video so when user select video to upload it shows preview of video just like the below code showing for image please advice

Upload Images
<input type="file" multiple="multiple" name="File1" id="File1" accept="image/*" />
<br />
<br />
<div id="showimage">
</div>
<hr />
<asp:Button ID="Button1" runat="server" Text="Upload and Save" OnClick="Button1_Click" />
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>