What is MIME type "application/vnd.ms-visio"?
A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.
The MIME type application/vnd.ms-visio designates files created with Microsoft Visio. It tells your computer and web browsers that the file contains a diagram or technical drawing. This MIME type ensures software handles the file correctly for display, editing, or conversion.
Microsoft Visio is used to draft many kinds of visual diagrams. The files associated with this MIME type include VSD (drawing files), VSS (stencil files), VST (template files), and VSW (workspace files).
- Diagram Creation: Build detailed flowcharts, network representations, or organizational charts.
- Process Mapping: Illustrate business processes and workflows clearly.
- Template Deployment: Use pre-designed diagrams as starting points for projects.
The strong integration of this MIME type with Microsoft Visio enables smooth file sharing and proper rendering across systems. It supports both editing and viewing tasks in professional settings. For further details, visit File Extension Lookup.
Associated file extensions
Usage Examples
HTTP Header
When serving content with this MIME type, set the Content-Type header:
Content-Type: application/vnd.ms-visio
HTML
In HTML, you can specify the MIME type in various elements:
<a href="file.dat" type="application/vnd.ms-visio">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/vnd.ms-visio');
res.end('Content here');
}).listen(3000);
Associated file extensions
FAQs
Which file extensions are associated with application/vnd.ms-visio?
This MIME type is primarily used for legacy Microsoft Visio binary files, including .vsd (drawings), .vst (templates), .vss (stencils), and .vsw (workspaces). For newer XML-based Visio files (like .vsdx), a different MIME type is typically used. You can learn more about specific extensions like vsd on our site.
How do I configure Apache to serve Visio files correctly?
To ensure Apache serves these files with the correct headers, add the AddType directive to your .htaccess file or main configuration. Use the line: AddType application/vnd.ms-visio .vsd .vst .vss .vsw. This prevents browsers from misinterpreting the file as a generic binary stream.
Can web browsers display application/vnd.ms-visio files directly?
No, modern web browsers like Chrome, Firefox, and Edge do not have built-in support to render application/vnd.ms-visio files. When a user clicks a link to a .vsd file, the browser will usually prompt to download the file instead of displaying it. To view these in a browser, the file must be converted to PDF or viewed via Microsoft's online Visio viewer.
What is the Nginx configuration for Microsoft Visio files?
For Nginx, you must ensure the MIME type is defined in your mime.types file or within a types block in your server configuration. Add the following line: application/vnd.ms-visio vsd vst vss vsw;. Reload Nginx after saving to apply the changes.
What is the difference between this MIME type and application/vnd.ms-visio.drawing?
application/vnd.ms-visio is generally used for older, binary Visio formats (Visio 2000-2010). Newer versions of Visio (2013 and later) use the Open XML format (files ending in .vsdx), which correspond to specific MIME types like application/vnd.ms-visio.drawing. It is important to distinguish between the two to ensure the client application opens the file correctly.
Why does my IIS server return a 404 error for .vsd files?
IIS (Internet Information Services) may block files with unknown extensions for security reasons. To fix this, you must explicitly add the MIME map in the MIME Types feature of the IIS Manager. Add the extension .vsd with the MIME type application/vnd.ms-visio.
Are there security risks associated with application/vnd.ms-visio files?
Yes, legacy binary Visio files can contain macros (VBA code), which can be used maliciously to execute unwanted scripts on a user's computer. Always scan these files for viruses before opening them, especially if they are downloaded from untrusted sources.
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.