What is MIME type "text/x-gooddata-cl"?

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

text/x-gooddata-cl designates a script file used by the GoodData command-line interface.
It holds plain text commands that the system reads and executes.
GoodData-CL scripts automate data operations and report tasks on the GoodData analytics platform.
Files using this MIME type typically have the extension GDC.
For further details, consider visiting external resources on GoodData scripting and command-line usage.

Associated file extensions

Usage Examples

HTTP Header

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


    Content-Type: text/x-gooddata-cl    
  

HTML

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


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

Associated file extensions

FAQs

What is the text/x-gooddata-cl MIME type used for?

The MIME type text/x-gooddata-cl identifies scripts used by the GoodData Command Line Interface (CLI). These files, typically with the .gdc extension, contain plain text commands that automate data loading and project management tasks within the GoodData platform.

How do I open or edit a GDC file?

Since the underlying format is plain text, you can open and edit these files using any standard text editor like Notepad, TextEdit, or Visual Studio Code. However, to execute the script, you must pass the file to the GoodData CLI tool in your terminal or command prompt.

How do I configure Apache to serve .gdc files correctly?

To ensure your Apache server recognizes the file type, add the following line to your .htaccess file or main configuration: AddType text/x-gooddata-cl .gdc. This ensures that when a user accesses a file with the gdc extension, the server sends the correct Content-Type header.

Will a web browser execute a text/x-gooddata-cl file?

No, web browsers cannot execute GoodData CLI scripts. Because the MIME type begins with text/, a browser will likely display the raw code as plain text or prompt the user to download the file to their computer.

Are there security risks associated with GoodData CL scripts?

Yes, these scripts often contain sensitive logic or, if poorly managed, hardcoded credentials. It is crucial to ensure that text/x-gooddata-cl files are not publicly accessible on your web server unless absolutely necessary, as they reveal how your data automation is structured.

What does the 'x-' prefix mean in this MIME type?

The x- prefix indicates that text/x-gooddata-cl is a non-standard or vendor-specific MIME type. It is not part of the standard IANA registry but is recognized specifically by GoodData software and developers working within that ecosystem.

Why does my server identify .gdc files as text/plain?

If your web server is not explicitly configured to map the .gdc extension to text/x-gooddata-cl, it will default to a generic text type like text/plain. You can fix this by updating your MIME type configuration in Nginx (types { text/x-gooddata-cl gdc; }) or Apache.

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.