What is MIME type "application/x-epoc-app"?
A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.
The MIME type application/x-epoc-app marks packaged files used for running applications on the EPOC operating system, better known as Symbian OS. These files store compiled code written in the OPL language, which was common on older mobile devices.
They tell the system that the file is a program package. This identification helps the device know how to execute the file properly. For example, when a user opens a file with a APP link, the system recognizes it as an application rather than simple data.
Key points and uses:
- Main Purpose: To run OPL-based mobile apps on EPOC/Symbian devices.
- System Integration: Ensures that the mobile operating system loads and executes the app correctly.
- Development Use: Used by developers to package and distribute programs in a format native to older mobile platforms.
The MIME type is a crucial identifier on systems that rely on file-type information to launch the correct applications. Learn more about file types and their handling by visiting resources like Filext.
Associated file extensions
Usage Examples
HTTP Header
When serving content with this MIME type, set the Content-Type header:
Content-Type: application/x-epoc-app
HTML
In HTML, you can specify the MIME type in various elements:
<a href="file.dat" type="application/x-epoc-app">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-epoc-app');
res.end('Content here');
}).listen(3000);
Associated file extensions
FAQs
What is the primary function of the application/x-epoc-app MIME type?
This MIME type identifies executable applications designed for the EPOC and Symbian operating systems. It tells the device that the associated file constitutes a runnable program, often compiled from OPL (Open Programming Language), ensuring the OS launches it correctly rather than treating it as a standard data file.
How do I configure Apache to serve .app files with this MIME type?
To ensure browsers handle EPOC applications correctly, add the following line to your .htaccess file or main server configuration: AddType application/x-epoc-app .app. This prevents the server from sending the file as text/plain or a generic binary stream.
Is an application/x-epoc-app file the same as a macOS .app file?
No, they are completely different despite sharing the .app extension. A macOS .app is actually a folder (bundle) acting as an application, whereas application/x-epoc-app refers to a specific single-file format for legacy Psion or Symbian mobile devices.
Can I open application/x-epoc-app files on Windows or Android?
You cannot run these files natively on modern operating systems like Windows or Android because they are compiled for specific, older mobile architectures. To run them, you would need a dedicated EPOC or Symbian emulator compatible with OPL applications.
How do I add support for this MIME type in Nginx?
Open your mime.types file (usually located in /etc/nginx/) and add the entry application/x-epoc-app app;. After saving the file, reload Nginx using sudo service nginx reload to apply the changes so users can download the files correctly.
Are files with the application/x-epoc-app MIME type secure?
As with any executable file, there is a potential security risk if the source is unknown. While Symbian-based malware cannot infect a modern Windows PC, downloading and running unknown executables on a compatible device or emulator should always be done with caution.
Why does my browser try to display the file as text instead of downloading it?
This usually happens if the web server is not configured to recognize the application/x-epoc-app type. Without a specific declaration, servers often default to text/plain, causing the browser to render the binary code as garbled text. You must update the server's MIME settings to fix this.
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.