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

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

application/x-wpg refers to a media type that handles graphic files created with WordPerfect Graphic 1.0.
It is tied to a specific image format mainly used in conjunction with WordPerfect documents.

Files with this MIME type use the WPG extension. For more details on the underlying technology, check out WordPerfect on Wikipedia.

Associated file extensions

Usage Examples

HTTP Header

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


    Content-Type: application/x-wpg    
  

HTML

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


    <a href="file.dat" type="application/x-wpg">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-wpg');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

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

application/x-wpg is the standard media type for WordPerfect Graphic files. These files, identified by the .wpg extension, are legacy vector and bitmap image containers primarily used by Corel WordPerfect software. You can learn more about the extension at wpg.

Do web browsers support application/x-wpg images?

No, modern web browsers like Chrome, Firefox, and Edge do not natively render WPG files. If a server sends this MIME type, the browser will typically prompt the user to download the file instead of displaying it. For web usage, convert these files to image/png or image/jpeg.

How do I configure Apache to serve WPG files?

To ensure your Apache server correctly identifies these files, add the following directive to your .htaccess file or httpd.conf: AddType application/x-wpg .wpg. This ensures the correct Content-Type header is sent to the client.

What is the Nginx configuration for application/x-wpg?

For Nginx, you should add the type definition to your mime.types file or inside the types { ... } block of your server configuration. Use the line: application/x-wpg wpg;.

How can I open a file sent as application/x-wpg?

You will likely need Corel WordPerfect, LibreOffice, or a dedicated vector graphics converter (like IrfanView with plugins) to view these files. Since they are effectively a proprietary binary format, standard text editors or image viewers often cannot open them.

Is application/x-wpg a secure format?

While generally just graphic data, legacy formats like WPG can sometimes trigger buffer overflow vulnerabilities in older parsing software. Always scan files downloaded from untrusted sources before opening them in desktop applications.

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.