---
title: "How to check a uploaded file type using asp.net with C#.net"  
description: "How to check a uploaded file type using asp.net with C#.net"  
author: "Anonymous User"  
published: 2011-01-13  
updated: 2026-05-15  
canonical: https://www.mindstick.com/forum/150/how-to-check-a-uploaded-file-type-using-asp-dot-net-with-c-sharp-dot-net  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# How to check a uploaded file type using asp.net with C#.net

I have to [upload](https://www.mindstick.com/forum/12860/how-to-upload-file-asynchronously-using-generic-handler) .DOC and .PDF [file](https://www.mindstick.com/articles/59/encrypting-and-decrypting-files-using-c-sharp) only.\
How to [validate](https://www.mindstick.com/forum/1490/what-is-better-solution-for-validate-form-textboxs-value) in [ASP.NET](https://www.mindstick.com/articles/934/default-folders-available-inside-the-asp-dot-net-application-folder)?\

## Replies

### Reply by Uttam Misra

check this article...\
\
http://www.mindstick.com/Articles/7d72a758-52bc-4242-922f-6b3914895d92/?Validating%20FileUpload%20control%20for%20specific%20file%20type%20and%20required%20field.\


---

Original Source: https://www.mindstick.com/forum/150/how-to-check-a-uploaded-file-type-using-asp-dot-net-with-c-sharp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
