Skip to content
You are using an unsupported browser. Please update your browser to the latest version on or before July 31, 2020.
You are viewing the article in preview mode. It is not live at the moment.
IMPORTANT: Upcoming Changes in CAREWare > Learn More

Attachment Settings

 

Purpose

Configure attachment storage, maximum upload size, and restricted file types.

Who should do this

CAREWare administrators or designated server support staff.

Use this setup when

Changing attachment storage or upload limits, or reviewing attachment maintenance.

Main warning

Back up attachments before changing storage or enabling orphan cleanup.

Video walkthrough

Attachment Settings

Quick path

Administrative Options > Server Management > Attachment Settings

Before you begin

• Confirm access to Central Administration.
• Back up the attachment store and CAREWare database.
• Confirm the destination folder is accessible to the Business Tier and included in backups.

Important
CAREWare recommends folder storage with reliable backups. SQL attachment storage is a legacy feature and can complicate SQL Express capacity, backup and migration.

 

 

Open Attachment Settings

Step 1. Log into Central Administration and click Administrative Options.

Step 2. Click Server Management.

Step 3. Click Attachment Settings.

Step 4. Click Edit.

Configure attachment settings

Step 5. Enter Max Attachment Size in bytes. Enter a file size limit like 5000000 (5 MB) or 0 for no limit.

Step 6. Review Restricted Attachment Types. Separate blocked extensions with semicolons.

Step 7. Use Store in folder and enter the approved Folder Path. Example: C:\Attachments.

Step 8. Click Save and review the saved settings.

Important
If Store in database is selected, the attached documents are stored in the cw_attachments database

Attachment settings reference

Setting

What it does

Max Attachment Size

Maximum bytes per file; default 5000000. Zero removes the limit.

Restricted Attachment Types

Blocks listed extensions, such as .exe;.DLL;.VBS;.BAT;.SH.

Store in database

Stores files in SQL cw_attachments; legacy option.

Store in folder / Folder Path

Stores files in the designated folder.

TransferAttachmentData

Moves existing files between the SQL attachment database and folder after a storage change.

Transfer existing attachments

Step 9. After changing storage, click TransferAttachmentData if existing attachments need to move between SQL and folder storage.

Step 10. Verify that previously stored attachments can be opened and that a new test upload succeeds.

Important
Do not delete the old storage or enable cleanup until existing files have been verified at the new location. Transfer guidance is from the Attachment Settings article, not the video.

 

 

Manage additional attachment settings

Step 11. Go to Administrative Options > Server Management > Common Storage Values.

Step 12. Search for attachment, select an Editable in List variable, then click View > Edit. Change the value and click Save.

Setting

What it does

attachmentDBCreated

Read-only indicator: 1 means the attachment database has been created; 0 means it has not.

Sharing Attachment Requirement

Requires a document for provider-by-provider sharing.

SharingFileTypes

Restricts document types for provider sharing.

Run Orphaned Attachment Delete

When enabled, removes records referencing missing files every 12 hours.

Divide Folder Attachments

Creates subfolders when attachmentFolderSizeLimit is reached (default 1000 files).

Attachment Archive Check Date

Last date and time the attachment folder archive process ran.

 

Important
Editable in List settings do not require a Business Tier restart. Use the location in Can Update for restrictAttachTypes and SaveAttachmentinDirectory. Investigate missing files before enabling orphan deletion.

Require sharing documentation

Step 13. In Central Administration, open Administrative Options > Provider Management > Sharing Attachment Requirement to review or change the requirement.

Step 14. Open Provider Sharing Overview, select the provider, then click Manage Sharing Docs to manage required documents.

Troubleshooting and common questions

Why is an upload rejected?

Check size, restricted extensions, attachment control file types, content types, permissions and daily upload quota.

Why are existing documents missing?

Verify the configured storage location and restore or transfer missing files before running cleanup.

Why can another provider not view a document?

Confirm sharing is enabled for the relevant data location and the attachment control is active for both providers.

Related CAREWare guides and resources

Resource

How it helps

Common Storage Values

Edit application settings.

Custom Control Setup

Configure attachment controls and upload restrictions.

Sharing Attachments

Share documents across providers.

Provider Setup

Configure provider data sharing.

Provider User Manager

Review permissions.

Restoring Attachments After Migrating the Database

Restore attachment access after migration.

Feedback

0 out of 0 found this helpful

Attachments

Attachment_Settings.pdf
jProg is a registered trademark of Jeff Murray's Programming Shop, Inc. All other products mentioned are registered trademarks or trademarks of their respective companies. Questions or problems regarding this web site should be directed to [email protected]. Copyright (c) 1998-2023 Jeff Murray's Programming Shop, Inc. (jProg), all rights reserved. jProg provides no warranty on accuracy, quality, reliability, or fitness of purpose for advice or other content provided on this website or for content provided by others on sites linked here.