DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Why File Type Fails To Show The Type If The File In A Video File ?  (Read 4,409 times)

The Code Queryer

  • Participant
  • Joined in 2019
  • *
  • Posts: 33
Php Gurus,

When I select a video mp4 file and get the File_Type to echo it then it echoes blank. Why is that ?
Code
$file_type = $_FILES["id_verification_video_file"]["type"]; 
echo "File Type: $file_type<br>"; 

The form I mentioning below incase you wondering whether I mispelled the item name.:
Code
<form METHOD="POST" ACTION="" enctype="multipart/form-data"> 
	<fieldset> 
	<p align="left"><h3><?php $site_name ?> ID Video Verification Form</h3></p> 
	<div class="form-group"> 
		<p align="left"<label>Video File: </label> 
		<input type="file" name="id_verification_video_file" id="id_verification_video_file" value="uploaded 'Id Verification Video File.'"></p> 
	</div> 
	</fieldset> 
	<p align="left"><button type="submit" class="btn btn-default" name="id_verification_video_file_submit">Submit!</button></p> 
</form> 

If I select a .php file then it manages to show the file type. Only shows blank on the mp4 file.

Original address: https://www.donationcoder.com/forum/index.php?topic=47457.0