What is MIME type "application/x-spss-por"?
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-spss-por identifies a portable file used by SPSS. It stores statistical data in a text-based (ASCII) format. This makes data exchange easier between different operating systems.Files with this MIME type use the POR extension. The text format allows the file to be read on various platforms without compatibility issues.
- Data portability: Enables smooth transfer of statistical data between systems.
- Cross-platform support: ASCII encoding ensures the file works on Windows, macOS, and Linux.
- Legacy compatibility: Useful for opening data files with older versions of SPSS and other statistical software.
Associated file extensions
Usage Examples
HTTP Header
When serving content with this MIME type, set the Content-Type header:
Content-Type: application/x-spss-por
HTML
In HTML, you can specify the MIME type in various elements:
<a href="file.dat" type="application/x-spss-por">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-spss-por');
res.end('Content here');
}).listen(3000);
Associated file extensions
FAQs
What is the primary purpose of the application/x-spss-por MIME type?
This MIME type indicates an SPSS Portable file (.por). It is an ASCII-based legacy format designed to transfer statistical datasets between different operating systems (such as mainframes and Windows) without encoding errors.
How do I open a file sent as application/x-spss-por?
You need statistical analysis software to open these files. The industry standard is IBM SPSS Statistics, but the free, open-source alternative GNU PSPP also fully supports reading application/x-spss-por data.
How do I configure Apache to serve .por files correctly?
To ensure browsers handle the file correctly, add the following line to your .htaccess or httpd.conf file: AddType application/x-spss-por .por. This prevents the server from guessing the type as generic text.
What is the difference between application/x-spss-por and application/x-spss-sav?
The application/x-spss-por type is for ASCII text files used for legacy compatibility and portability. In contrast, files using application/x-spss-sav are binary files (.sav), which are faster to read and support modern SPSS features but may be less compatible across very old systems.
Why does my browser display the .por file as text instead of downloading it?
Because .por files are text-based, a misconfigured server might serve them as text/plain. You can force a download by adding a Content-Disposition: attachment header on the server or by right-clicking the link and selecting Save Link As.
Can I read application/x-spss-por files using Python or R?
Yes, data scientists can read this MIME type without SPSS. In R, use the haven package (read_por()), and in Python, the pandas library can read these files using pd.read_spss() (requires pyreadstat).
Is application/x-spss-por a standard IANA MIME type?
No, the x- prefix signifies that it is a non-standard, vendor-specific type originally defined by SPSS (now IBM). While not in the official IANA registry, it is widely recognized by web servers and statistical 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 line: application/x-spss-por por;. Reload Nginx to apply the changes.
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.