---
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

<sup><span class="nodinite-new-badge">New 7.5.0</span></sup>

**SharedFilePolicy** is a JSON [System Parameter][System Parameters] that governs the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [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.*  

<h2 id="at-a-glance"><i class="fal fa-table" aria-hidden="true"></i> At a Glance</h2>

| 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`.*  

<h2 id="how-it-works"><i class="fal fa-gears" aria-hidden="true"></i> How It Works</h2>

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.

<h2 id="value-format"><i class="fal fa-code" aria-hidden="true"></i> Value Format</h2>

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

<h2 id="choosing-a-value"><i class="fal fa-lightbulb" aria-hidden="true"></i> Choosing a Value</h2>

* 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.

<h2 id="faq"><i class="fal fa-question" aria-hidden="true"></i> Frequently Asked Questions</h2>

<h3 id="upload-rejected">Why was my upload rejected?</h3>

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.

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-folder-open" aria-hidden="true"></i> [What is the File Library][]  
* <i class="fal fa-sliders" aria-hidden="true"></i> [Manage System Parameters][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-file-lines" aria-hidden="true"></i> [Files][]  
* <i class="fal fa-newspaper" aria-hidden="true"></i> [Articles][]  
* <i class="fal fa-tags" aria-hidden="true"></i> [Custom Metadata][]  
* <i class="fal fa-tags" aria-hidden="true"></i> [Add or manage Custom Metadata][]  
* <i class="fal fa-images" aria-hidden="true"></i> [Image Library][]  
* <i class="fal fa-key" aria-hidden="true"></i> [System Parameters][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/ConfigurationDatabase/SystemParameters/SharedFilePolicy.png

[Add or manage Custom Metadata]:https://docs.nodinite.com/getting-started/repository/custom-metadata/add-or-manage-custom-metadata/
[Articles]:https://docs.nodinite.com/repository-model/knowledge-base-articles/overview/
[Custom Metadata]:https://docs.nodinite.com/repository-model/custom-metadata/overview/
[Files]:https://docs.nodinite.com/repository-model/files/overview/
[Hero]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Settings/SP/SystemParameters_SharedFilePolicy.gif
[Image Library]:https://docs.nodinite.com/repository-model/images/features/what-is-the-image-library/
[Manage System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/manage-system-parameters/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web Client]:https://docs.nodinite.com/core-services/web-client/overview/
[What is the File Library]:https://docs.nodinite.com/repository-model/files/features/what-is-the-file-library/