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

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

application/x-gnumeric is a MIME type for spreadsheet documents created by the Gnumeric application. It is designed to handle data, formulas, and formatting used in spreadsheets.
Files using this MIME type include those with the GNUMERIC and GNM extensions. This format streamlines data operations across compatible applications. For more details, visit Gnumeric.

Associated file extensions

Usage Examples

HTTP Header

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


    Content-Type: application/x-gnumeric    
  

HTML

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


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

Associated file extensions

FAQs

What application opens files with the application/x-gnumeric MIME type?

These files are primarily opened by Gnumeric, a specialized spreadsheet program that is part of the GNOME desktop environment. While other office suites like LibreOffice Calc may be able to import them, native support is best found in the Gnumeric application itself. You can identify these files by their .gnumeric or .gnm extensions.

How do I configure Apache to serve Gnumeric files correctly?

To ensure your Apache server sends the correct headers, add the MIME type directive to your .htaccess file or main configuration. Use the line: AddType application/x-gnumeric .gnumeric .gnm. This prevents the browser from guessing the content type incorrectly.

Can web browsers display application/x-gnumeric files directly?

No, standard web browsers like Chrome, Firefox, or Edge cannot render Gnumeric spreadsheets natively. When a user clicks a link serving this MIME type, the browser will typically prompt the user to download the file or open it in an external desktop application.

What does the 'x-' prefix mean in application/x-gnumeric?

The x- prefix indicates that this is a non-standard or vendor-specific MIME type that has not been formally registered in the IANA standards tree. Despite this, application/x-gnumeric is the widely accepted convention for identifying these spreadsheet files in Linux and web environments.

Why is my Gnumeric file being detected as XML or Gzip?

Gnumeric files are structured as XML data and are frequently compressed using gzip to save disk space. If a system inspects the file's "magic numbers" (content signature) rather than the MIME type provided by the server, it might misidentify the file as application/xml or application/gzip.

How do I add support for Gnumeric files in Nginx?

You need to update your mime.types file or the specific server block configuration. Add the following entry inside the types block: application/x-gnumeric gnumeric gnm;. Afterwards, reload Nginx to apply the changes.

Are there security risks associated with application/x-gnumeric?

Like other spreadsheet formats (such as .xlsx), these files can contain complex formulas. While generally safe, you should always scan files downloaded from untrusted sources before opening them, as vulnerabilities in the parsing software could theoretically be exploited.

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.