---
title: SharedFilePolicy System Parameter – File Library Upload and Link Policy
description: "The SharedFilePolicy system parameter in Nodinite is a JSON policy for the File Library: allowedMimeTypes sets which files can be uploaded, and defaultLinkTarget and defaultDeliveryBehavior set how Shared File links open from Articles and Custom Metadata."
---

# SharedFilePolicy - System Parameter

:new7.5.0:

**SharedFilePolicy** is a JSON [System Parameter][System Parameters] that governs the :Nodinite: [File Library][What is the 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][].

![SharedFilePolicy opened from the System Parameters list with text/markdown in the value, the page's example without Markdown saved, then Repository, Files, Upload New File with a Markdown file refused with the message that lists the allowed types, animated walkthrough (7.12)][Hero]  
*Animated walkthrough: today's value allows Markdown files (`text/markdown`). Saving the example on this page, which leaves Markdown out, makes the [File Library][What is 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.*  

## :fa-table: At a Glance {#at-a-glance}

| Property | Value |
| --- | --- |
| Key | `SharedFilePolicy` |
| Data type | json |
| Default | The [example](#value-format) 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 |

![The SharedFilePolicy edit page with the example value typed in: allowedMimeTypes, defaultLinkTarget NewTab and defaultDeliveryBehavior BrowserDefault, and Save in the page toolbar (7.12)][1]  
*Example of the SharedFilePolicy System Parameter with `allowedMimeTypes`, `defaultLinkTarget`, and `defaultDeliveryBehavior`.*  

## :fa-gears: How It Works {#how-it-works}

The [File Library][What is 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.

## :fa-code: Value Format {#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:

```json
{
  "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"
}
```

## :fa-lightbulb: Choosing a Value {#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.

## :fa-question: Frequently Asked Questions {#faq}

### Why was my upload rejected? {#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.

## :fa-hand-point-right: Next Steps

* :fa-folder-open: [What is the File Library][]  
* :fa-sliders: [Manage System Parameters][]  

## :fa-link-horizontal: Related Topics

* :fa-file-lines: [Files][]  
* :fa-newspaper: [Articles][]  
* :fa-tags: [Custom Metadata][]  
* :fa-tags: [Add or manage Custom Metadata][]  
* :fa-images: [Image Library][]  
* :fa-key: [System Parameters][]  

[1]:{ndm}/Documentation%20Pictures/IM/CoreServices/ConfigurationDatabase/SystemParameters/SharedFilePolicy.png

[Add or manage Custom Metadata]:{ndr}/Getting%20Started/4.%20Repository/Custom%20Metadata/Add%20or%20manage%20Custom%20Metadata.md
[Articles]:{ndr}/Repository%20Model/Knowledge%20base%20Articles/Overview.md
[Custom Metadata]:{ndr}/Repository%20Model/Custom%20Metadata/Overview.md
[Files]:{ndr}/Repository%20Model/Files/Overview.md
[Hero]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Settings/SP/SystemParameters_SharedFilePolicy.gif
[Image Library]:{ndr}/Repository%20Model/Images/Features/What%20is%20the%20Image%20Library.md
[Manage System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Manage%20System%20Parameters.md
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web Client]:{ndr}/Core%20Services/Web%20Client/Overview.md
[What is the File Library]:{ndr}/Repository%20Model/Files/Features/What%20is%20the%20File%20Library.md