Which MIME types are related to file extension ".fun"?

The .fun file extension is associated with 2 MIME types:

text/x-ocaml, application/octet-stream.

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

About .fun Files

FUN files are used for two distinct purposes based on their MIME type.
When a FUN file is marked as text/x-ocaml, it typically contains Standard ML source code. This plain text file can be opened and edited with text editors or IDEs like Visual Studio Code or Notepad++.
When a FUN file uses application/octet-stream, it stores binary data for a Cubify Invent model. This version is meant for specialized software that handles 3D models.

Based on information from FilExt.com, FUN files can serve different practical functions. Their behavior depends on which MIME type is used, so it is best to know the fileโ€™s origin before selecting an application to open it.

Relationship between file extension and MIME type

A file extension is a suffix at the end of a filename that indicates what type of file it is. File extensions help both users and operating systems identify what application should be used to open the file.

File extensions are typically separated from the filename by a period (dot) and consist of 2-4 characters, though they can be longer. For example, in the filename "document.pdf", ".pdf" is the file extension.

File extensions are closely related to MIME types, as they both serve to identify the format of a file. However, while MIME types are used primarily by web browsers and servers, file extensions are used by operating systems and applications.

Associated MIME types

text/x-ocaml, application/octet-stream

FAQs

What is a .fun file?

A .fun file usually falls into one of two categories: it is either a source code file written in Standard ML, or a 3D model project created by Cubify Invent. You can tell the difference by opening it in a simple text editor; if you see readable code, it is a script, otherwise, it is a binary 3D model.

How do I open a .fun file containing code?

If the file contains Standard ML source code, you can open and edit it using any plain text editor such as Microsoft Notepad, Notepad++, or Visual Studio Code. For the best experience, install an extension or plugin that supports ML or OCaml syntax highlighting.

Which software opens Cubify Invent .fun files?

These files contain binary 3D data and require Cubify Invent software to open correctly. Since Cubify Invent is a legacy product, you may need to contact 3D Systems or look for older CAD converters if you no longer have access to the original application.

Why does my .fun file look like random symbols in Notepad?

You are likely trying to open a binary Cubify Invent model in a text editor. This file type uses the MIME type application/octet-stream and is not human-readable. You must use compatible 3D modeling software to view its contents.

Can I convert a .fun file to STL for 3D printing?

Yes, if the file is a Cubify Invent model, you can typically export it to .stl format using the Cubify software. However, if the file is a text-based script, it cannot be converted into a 3D object.

What is the MIME type for .fun files?

The MIME type depends on the file's content. Standard ML scripts often use text/x-ocaml or text/plain, while the binary 3D models are identified as application/octet-stream. For a comprehensive list of types, visit mime-type.com.

How do I execute the code in a .fun file?

To run the code, you need a Standard ML compiler or interpreter, such as SML/NJ (Standard ML of New Jersey) or MLton. You can pass the .fun file to these tools via the command line to compile or execute the program.

Is a .fun file dangerous?

Legitimate .fun files are safe, but the extension name has been used historically by email worms (like variants of the LoveLetter virus) to trick users. Always scan files from unknown sources with antivirus software before opening them.

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 can one extension have multiple MIME types?

Different programs and historical usage may assign various MIME identifiers to the same file format. Listing them together helps maintain compatibility across tools.