Title: Display file extension
Last modified: August 20, 2016

---

# Display file extension

 *  [Corbula](https://wordpress.org/support/users/corbula/)
 * (@corbula)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/display-file-extension/)
 * In my template file i’ve got a custom file upload field. I want it to display
   for example, ‘Download PDF’ where PDF is the actual file extension.
 * It won’t just be PDF files so i can’t just put that. I need some php that is 
   going to show the file extension.
 * I’ve found this but i’m unsure how to use it.
 * [http://codex.wordpress.org/Function_Reference/wp_check_filetype](http://codex.wordpress.org/Function_Reference/wp_check_filetype)
 * Thanks

The topic ‘Display file extension’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Corbula](https://wordpress.org/support/users/corbula/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/display-file-extension/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
