Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Correct mime type for .mp4

I have two applications as mentioned below:

  1. Admin application through which I am able to upload a .mp4 file to the server.
  2. I am trying to download the .mp4 using mobile application in iPad.

  • The Admin application is made by using asp.net 4.0 and SQL Server, IIS7.
  • The Mobile application is made of asp.net mvc3, jquerymobile, HTML5.

As of now I have added mime type video/mp4 for .mp4 in IIS7 mime types section.

When I am trying to download the .mp4 file in iPad I am seeing a dark black screen with cross arrow on it. Can anyone please help me to resolve the issue.

Please tell me whether the mime type video/mp4 for .mp4 is correct.

like image 311
santosh kumar patro Avatar asked Sep 26 '22 05:09

santosh kumar patro


People also ask

How do I know my MIME type?

For detecting MIME-types, use the aptly named "mimetype" command. It has a number of options for formatting the output, it even has an option for backward compatibility to "file". But most of all, it accepts input not only as file, but also via stdin/pipe, so you can avoid temporary files when processing streams.

What is MIME type format?

A MIME type (also known as a Multipurpose Internet Mail Extension) is a standard that indicates the format of a file. It is a fundamental characteristic of a digital resource that influences its ability to be accessed and used over time.


1 Answers

According to RFC 4337 § 2, video/mp4 is indeed the correct Content-Type for MPEG-4 video.

Generally, you can find official MIME definitions by searching for the file extension and "IETF" or "RFC". The RFC (Request for Comments) articles published by the IETF (Internet Engineering Taskforce) define many Internet standards, including MIME types.

like image 306
TRiG Avatar answered Oct 20 '22 12:10

TRiG