Quote:
quote:Originally posted by wajhi
Actually there is a way to set filter to "Input Type File" just add below Attribute to your "Input type file" and it will work.
|
This doesn't seem to work neither in IE or Moz. MSDN says: There is no functionality implemented for this property unless defined by the author.
http://msdn.microsoft.com/library/de...ies/accept.asp
Any suggestions? Here is my ASPX:
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="Upload.FileFilters._Default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>Default</title>
</head>
<body>
<form id="Form1" method="post" runat="server">
<input type="file" id="file1" accept="video/mpeg">
</form>
</body>
</html>