What is MIME type "application/x-doom"?

A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.

application/x-doom is a MIME type for game data used by the Doom engine.
It mainly handles files that carry all game assets like maps, textures, sounds, and more. In practice, these files are often in the WAD format.
This type is vital for developers and fans who work on Doom mods. For more detailed discussions on related file types, you can visit Filext.

Associated file extensions

Usage Examples

HTTP Header

When serving content with this MIME type, set the Content-Type header:


    Content-Type: application/x-doom    
  

HTML

In HTML, you can specify the MIME type in various elements:


    <a href="file.dat" type="application/x-doom">Download file</a>    
  

Server-side (Node.js)

Setting the Content-Type header in Node.js:


    const http = require('http');    
    
    http.createServer((req, res) => {    
      res.setHeader('Content-Type', 'application/x-doom');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

What is the application/x-doom MIME type used for?

The MIME type application/x-doom is specifically used to identify WAD files, which contain game data for the classic Doom engine. These files hold essential assets like levels, textures, sprites, and audio required to run the game or its modifications (mods).

How do I configure my web server to serve .wad files correctly?

To ensure browsers recognize the file, you must add the MIME type to your server configuration. For Apache, add AddType application/x-doom .wad to your .htaccess file. For Nginx, include application/x-doom wad; inside your mime.types file or the types block.

Can web browsers open application/x-doom files directly?

No, standard web browsers cannot natively render or execute application/x-doom files. When a user clicks a link to a file with this type, the browser will usually prompt to download the .wad file, which the user must then open with a compatible game engine.

What software do I need to open a file with this MIME type?

You need a Doom source port to open these files. Popular options include GZDoom, PrBoom+, and Chocolate Doom. These programs act as the engine to interpret the data inside the WAD file and allow you to play the game or custom levels.

Why does the MIME type start with "x-"?

The x- prefix indicates that application/x-doom is a non-standard or experimental type that has not been officially registered with the IANA. It was adopted by the internet community and developers to specifically identify Doom game data.

Are application/x-doom files safe to download?

Generally, WAD files are just data containers and are safe; however, modern source ports usually support scripting (like ACS or ZScript). While rare, it is theoretically possible for malicious scripts to exist, so you should only download mods from trusted communities like Doomworld or idgames.

Is application/x-doom used for PK3 files?

No, application/x-doom is strictly for the WAD format. Modern Doom mods often use PK3 files, which are actually renamed ZIP archives. Those should typically be served with the application/zip MIME type, even though they are used by the same game engines.

General FAQ

What is a MIME type?

A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.

MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.

How do I find the MIME type for a file?

You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.

Why are multiple MIME types listed for one extension?

Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.