What is MIME type "application/x-eagle-schematic"?

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

application/x-eagle-schematic is the MIME type used for EAGLE schematic files. These files store electronic circuit designs with detailed information on components, wiring, and netlists.
They are processed by EAGLE design software to aid in printed circuit board projects. The files are saved with the extension SCH.

Key Facts and Uses: For more on MIME types, check out the IANA Media Types resource.

Associated file extensions

Usage Examples

HTTP Header

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


    Content-Type: application/x-eagle-schematic    
  

HTML

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


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

Associated file extensions

FAQs

Which software opens files with the application/x-eagle-schematic MIME type?

Files served with this MIME type are primarily opened using Autodesk EAGLE or Autodesk Fusion 360. However, other PCB design tools like KiCad and Altium Designer often feature import tools capable of reading these .sch files.

How do I configure Apache to serve EAGLE schematic files correctly?

To ensure your Apache server sends the correct headers for EAGLE files, add the following line to your .htaccess file or main configuration: AddType application/x-eagle-schematic .sch. This helps client browsers understand that the file requires specific software to open.

Why does my browser download the .sch file instead of displaying it?

Web browsers (like Chrome or Firefox) do not have built-in rendering engines for electronic circuit schematics. When a server sends the application/x-eagle-schematic header, the browser defaults to downloading the file so you can open it locally with the appropriate CAD software.

Is the application/x-eagle-schematic format text-based or binary?

It depends on the version. Since EAGLE version 6.0, the format uses XML, making it human-readable text that plays well with version control systems like Git. Versions prior to 6.0 used a binary format that cannot be edited in a standard text editor.

What should I do if Nginx is serving .sch files as plain text?

If Nginx serves these files as text/plain, you need to update your mime.types file or server block. Add the directive types { application/x-eagle-schematic sch; } to ensure the server identifies the file as a specialized application format rather than generic text.

Are there security risks associated with opening EAGLE schematic files?

While generally safe, modern EAGLE files are XML-based. As with any XML format, there is a theoretical risk of XML External Entity (XXE) attacks if the parsing software is vulnerable, though this is rare in desktop CAD tools. Always ensure your design software is updated to the latest version.

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.