---
title: "Discussion on \"How to detect a file type in PHP\" | Hashnode"
description: "Discussion on \"How to detect a file type in PHP\". Note: This is not a tutorial on how to upload files in PHP\nOne of the major challenges when it comes to processing file uploads in PHP is determining the correctness of the file type. There are different ways to check the type of file uploaded if it'..."
url: "https://hashnode.com/posts/how-to-detect-a-file-type-in-php/638a94017fdf07aec7329750"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to detect a file type in PHP](https://jiroghene.hashnode.dev/how-to-detect-a-file-type-in-php?utm_source=hashnode&utm_medium=feed)

Note: This is not a tutorial on how to upload files in PHP One of the major challenges when it comes to processing file uploads in PHP is determining the correctness of the file type. There are different ways to check the type of file uploaded if it'...

Dec 3, 2022 · 2 min read · jiroghene.hashnode.dev  
Read the article

-   [#php](https://hashnode.com/tag/php)
-   [#file-upload](https://hashnode.com/tag/file-upload)

## Written by

[Ejiroghene Obiuwevbi](https://hashnode.com/@Jiroghene)

@Jiroghene

  
[View profile](https://hashnode.com/@Jiroghene)

Senior Backend Developer @peerwallet

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
