SharedFilePolicy - System Parameter
New 7.5.0
SharedFilePolicy is a JSON System Parameter that governs the Nodinite File Library: which file types users may upload as shared files, and how Shared File links open when users click them in Articles and Custom Metadata.

Animated walkthrough: today's value allows Markdown files (text/markdown). Saving the example on this page, which leaves Markdown out, makes the File Library refuse a Markdown upload, and the Upload New File form shows the refusal in red under its drop zone, with the types that are allowed.
At a Glance
| Property | Value |
|---|---|
| Key | SharedFilePolicy |
| Data type | json |
| Default | The example plus text/markdown (11 types), with NewTab and BrowserDefault |
| Read by | Web Client and Web API |
| Takes effect | Within about 15 seconds; no restart needed |
| Status | ✅ Active |
| Since | Nodinite 7.5.0 |

Example of the SharedFilePolicy System Parameter with allowedMimeTypes, defaultLinkTarget, and defaultDeliveryBehavior.
How It Works
The File Library rejects an upload whose MIME type is not in allowedMimeTypes. The server checks the type on Upload, and the Upload New File form shows the reason in red under the drop zone, for example Content type 'text/markdown' is not allowed for file assets. Allowed types: … Shared File links in Articles and in Shared File Custom Metadata values open with the default link target and delivery behaviour from this policy.
The policy covers only the File Library and the Shared File metadata type. The Image Library has its own rules, and private Attachment values in Custom Metadata keep their own copy of each file.
Value Format
| Property | Type | Meaning | Example value |
|---|---|---|---|
allowedMimeTypes |
string array | MIME types accepted for File Library uploads. Leave out executables and other formats you don't want in the shared library. | application/pdf, application/json, Office Open XML formats, application/zip |
defaultLinkTarget |
string | Where a Shared File link opens. | NewTab |
defaultDeliveryBehavior |
string | How the browser receives the file. BrowserDefault lets the browser show files it can display, such as PDF, JSON, XML, and text, instead of downloading them. |
BrowserDefault |
The keys are stored as AllowedMimeTypes, DefaultLinkTarget and DefaultDeliveryBehavior; the camelCase spelling of the example is accepted too.
The value is refused on save when it is empty, when allowedMimeTypes is empty or has an empty entry, or when the link target or the delivery behaviour is not a known value.
Example, the configuration documented for the Files feature. It leaves out text/markdown, which the default includes; add it back if your teams share Markdown files:
{
"allowedMimeTypes": [
"application/pdf",
"text/plain",
"text/csv",
"application/json",
"application/xml",
"text/xml",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
"application/zip"
],
"defaultLinkTarget": "NewTab",
"defaultDeliveryBehavior": "BrowserDefault"
}
Choosing a Value
- Allow the business and technical document formats your teams need for runbooks, schemas, and partner documents in Articles and Custom Metadata, and review the list with those teams.
- Keep executables and scripts out of
allowedMimeTypes. - Keep the link behaviour predictable, so users know whether a file opens in the browser or in a new tab.
Frequently Asked Questions
Why was my upload rejected?
The file's MIME type is not in allowedMimeTypes. The upload form says so in red under the drop zone: Content type 'text/markdown' is not allowed for file assets. Allowed types: … Compare the file's detected MIME type with the list, and add it only if the format should be allowed.