PHP Classes

MIME type for Quicktime .mov

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  MIME type for Quicktime .mov  
Subject:MIME type for Quicktime .mov
Summary:What is the correct MIME type for Quicktime .mov files?
Messages:2
Author:JACE Trinidad
Date:2012-02-07 21:14:47
Update:2012-02-08 01:10:55
 

  1. MIME type for Quicktime .mov   Reply   Report abuse  
Picture of JACE Trinidad JACE Trinidad - 2012-02-07 23:55:10
I am trying to have a PHP script validate a file type being uploaded, it works for others but not Quicktime .mov files.

What is the correct MIME type for Quicktime .mov files?

<?php

if ((($_FILES["file"]["type"] == "video/mpeg")
|| ($_FILES["file"]["type"] == "video/mpeg4")
|| ($_FILES["file"]["type"] == "video/mp4")
|| ($_FILES["file"]["type"] == "video/x-quicktime")
|| ($_FILES["file"]["type"] == "video/quicktime"))
&& ($_FILES["file"]["size"] > 0))
{
etc...
etc...
etc...
}
else
{
echo "Invalid file";
}

?>

There is 1 reply in this thread, which is not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.