Hi all
I programmed a FileUpload (C-sharp and ASP.NET) which is already working fine.
Now I'd like to add a feature: At the form where I browse for the file I want to upload, I'd like to validate the file type.
I'd like to allow only Presentation Powerpoint files in the format .pptx.
Does anybody know how i can program this feature?
I try this code, but show message: `Upload status: Only PPTX files are accepted!`
Thanks for your time and hints.
Fileupload: allow only Microsoft Office Powerpoint 2007 (pptx)
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

sudharsan s110 reputationPosted Jul 5, 2012, 4:26 AM EDT
if (extn.Equals(".pptx"))
{
write the insert query
}
else
{
through the error message
}
if u not get clear this post.
then post your code i will give the answer
Chevy Mark Sunderland159 reputationPosted Jul 5, 2012, 4:34 AM EDT