What is MIME type "application/sldworks"?

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

application/sldworks is the MIME type for files created by the SolidWorks CAD program.
It tells your computer that the file contains design data for 3D modeling and engineering work.
These files store complex geometry and assembly details used in manufacturing and design projects.
The file types associated with this MIME type include parts like SLDPRT, assemblies like SLDASM, and drawings like SLDDRW.
For more details on SolidWorks, visit the SolidWorks website.

Associated file extensions

Usage Examples

HTTP Header

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


    Content-Type: application/sldworks    
  

HTML

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


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

Associated file extensions

FAQs

Which file extensions are associated with application/sldworks?

The application/sldworks MIME type is primarily associated with three main SolidWorks file formats: Part files (sldprt), Assembly files (sldasm), and Drawing files (slddrw). These extensions distinguish between individual components, combined structures, and 2D technical schematics.

Can web browsers render application/sldworks files directly?

No, standard web browsers like Chrome, Firefox, or Edge cannot natively render 3D CAD data. When a browser encounters application/sldworks, it will usually prompt the user to download the file so it can be opened in desktop software like SolidWorks or eDrawings Viewer.

How do I add support for SolidWorks files in Apache?

To ensure your Apache server sends the correct headers, add the following line to your .htaccess file or the main httpd.conf configuration: AddType application/sldworks .sldprt .sldasm .slddrw. This ensures clients recognize the file type immediately upon download.

How do I configure Nginx to serve SolidWorks files?

You should update your mime.types file or the types block within your nginx.conf. Add the following entry: application/sldworks sldprt sldasm slddrw;. After saving the file, restart Nginx to apply the changes.

How do I configure IIS to handle application/sldworks?

In Internet Information Services (IIS) Manager, select your site and open the MIME Types feature. Click Add... and enter .sldprt (and repeat for .sldasm and .slddrw) as the file name extension and application/sldworks as the MIME type.

Why are my SolidWorks files downloading as application/octet-stream?

If a web server does not have a specific definition for SolidWorks extensions, it often defaults to application/octet-stream, which is a generic binary type. While the file content remains valid, adding the specific MIME type helps the operating system associate the download with the correct CAD application automatically.

How can I view these files if I don't have SolidWorks installed?

If you receive a file with the application/sldworks type but lack the full CAD suite, you can use the free eDrawings Viewer. Additionally, some cloud-based CAD platforms allow you to upload and view these formats in a browser via WebGL conversion.

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.