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.
Loading
sudharsan sPosted Jul 5, 2012, 8:26 AM
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 SunderlandPosted Jul 5, 2012, 8:34 AM