How we can allow only excel sheet to be uploaded in file uppload functionality.

r u upload the excel sheet at a run time or normal

get extention of file if it xls not upload

str="osama.xls";
string s2=str.substring(indexof('.')+1,str.length());
if(s2=="xls")return;

r u upload the excel sheet at a run time or normal

At run time.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.