Skip to main content

Version: 20.05 (EOL)

Attachments

The attachments config is used to configure the attachments card on the Details screen. Currently, Workspaces supports the following customization options: duplicates, filter, and uploadWithoutClaim.

The query parameter &pageId=document is sent in the URL to support special handling on the Maestro form. Messages are sent using a postMessage API with the following schema:

{
pageId: 'document'
}

Options

duplicates

When set to true, this option removes duplicates from the attachments UI.

filter

When configured, depending on the filter.action, it will include/exclude any attachments that match the filter.regex pattern.

uploadWithoutClaim

When set to true, the hard-coded claim business rule is removed from the upload button.

Attributes

The list of supported configuration attributes are available in Reference > CurrentSpaceAttachments.

Example

The following example shows how to configure the attachments card.

src/configs/custom/process.ts
{
import { ConfigCurrentSpace } from '@transact-open-ux/workspaces/dist/types';

export const processConfig = ({ date }: any): ConfigCurrentSpace => ({
...
attachments: {
duplicates: true,
filter: {
action: 'exclude',
regex: '.zip',
},
uploadWithoutClaim: true,
},
...
});

export default processConfig;
}