What is MIME type "application/dbase"?

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

application/dbase is a MIME type used for database files that hold structured, tabular data.
It signals that a file's content is organized in rows and columns. This structure is common in legacy database systems and geographic information systems (GIS).
Files such as DAT (MapInfo Data File) and DBF (dBASE Database IV) use this MIME type.
This MIME type ensures that applications treat these files as structured databases, facilitating proper data handling and processing.
For more details on similar file formats, visit dBASE on Wikipedia.

Associated file extensions

Usage Examples

HTTP Header

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


    Content-Type: application/dbase    
  

HTML

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


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

Associated file extensions

FAQs

What is the primary purpose of the application/dbase MIME type?

This MIME type identifies files containing structured, tabular data, most notably dBASE database files and MapInfo data files. It signals to the client that the content is organized in rows and columns, a format common in legacy database systems and Geographic Information Systems (GIS).

How do I configure Apache to serve .dbf files with the correct MIME type?

To ensure your Apache server sends the correct header, add the following line to your .htaccess file or main configuration: AddType application/dbase .dbf. If you are also serving MapInfo files, you can include that extension as well: AddType application/dbase .dbf .dat.

Why does the browser download the file instead of displaying it?

Modern web browsers do not have built-in rendering engines for legacy database formats like .dbf or .dat. When a browser encounters application/dbase, it defaults to downloading the file so it can be opened by a compatible local application like Excel or a GIS viewer.

How do I add application/dbase support to an Nginx server?

You need to update your mime.types file, which is usually located in /etc/nginx/. Add the entry application/dbase dbf dat; inside the types { ... } block and reload Nginx to apply the changes.

What software can open files served as application/dbase?

These files are most commonly opened using spreadsheet software like Microsoft Excel or LibreOffice Calc. In the context of mapping data, they are handled by GIS software such as QGIS, ArcGIS, or MapInfo.

Are there alternative MIME types used for .dbf files?

Yes, for compatibility with older systems, you might see application/x-dbase used. If the server is not configured specifically for these extensions, the files may default to the generic binary type application/octet-stream.

Is it safe to expose application/dbase files publicly?

These files often contain raw database records which may include sensitive information. You should verify that the .dbf files do not contain private data before allowing public access, as they can be easily downloaded and opened by anyone.

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.