Hi All,
The issue got resolved.
I used this page for reference
Microsoft Office MIME Types
It works fine for docx files if I use the following markup
<asp:AjaxFileUpload ID="AjaxFileUpload1" runat="server" Width="500px" AllowedFileTypes="doc,vnd.openxmlformats-officedocument.wordprocessingml.document" />
And the following works for xlsx
<asp:AjaxFileUpload ID="AjaxFileUpload1" runat="server" Width="500px" AllowedFileTypes="xls,vnd.openxmlformats-officedocument.spreadsheetml.sheet" />
And the following for doc files
<asp:AjaxFileUpload ID="AjaxFileUpload2" runat="server" Width="500px" AllowedFileTypes="doc,msword" />
You can use it like this
<asp:AjaxFileUpload ID="AjaxFileUpload2" runat="server" Width="500px" AllowedFileTypes="xls,vnd.ms-excel,xls,vnd.openxmlformats-officedocument.spreadsheetml.sheet,doc,msword,doc,vnd.openxmlformats-officedocument.wordprocessingml.document" />
Hope this will help some one :)
Thanks and regards
Avinaash S