---
title: "Display only file name in FileUpload control"  
description: "Display only file name in FileUpload control"  
author: "Samuel Fernandes"  
published: 2014-08-23  
updated: 2014-08-23  
canonical: https://www.mindstick.com/forum/2115/display-only-file-name-in-fileupload-control  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# Display only file name in FileUpload control

I have a [FileUpload](https://www.mindstick.com/forum/428/is-there-a-way-to-check-fileupload-has-file-or-not-in-client-side-if-it-has-i-want-to-enable-button) [control](https://www.mindstick.com/blog/197/asp-dot-net-repeater-control). When a [user clicks](https://answers.mindstick.com/qa/34556/if-a-user-clicks-all-the-google-ads-on-my-site-is-it-foul) on the "Browse" [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net) , the control displays a file [select](https://www.mindstick.com/forum/160534/orderby-then-select-vs-select-then-orderby-performance) [popup](https://www.mindstick.com/blog/11734/how-to-create-advanced-popup-or-banners-with-news-images-discounts-in-magento2) . When the user selects the file , by [default](https://www.mindstick.com/interview/12771/what-is-the-importance-of-default-resources) the full path to the file is shown in the textbox. However, I wish for it to only display the [file name](https://www.mindstick.com/interview/2597/can-you-have-two-files-with-the-same-file-name-in-gac) and not the full path.

[Anyone](https://www.mindstick.com/articles/23207/how-to-find-the-best-fit-job-for-anyone) know easy way to do this?

## Replies

### Reply by Sumit Kesarwani

Hi Samuel, \

The FileUpload control is essentially an html <input type="file">

As such, the browser determines how to render it. You have no control over this.


---

Original Source: https://www.mindstick.com/forum/2115/display-only-file-name-in-fileupload-control

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
