How to change Attachment storage path?

This is the path displayed in Confluence Administration > Attachment Storage.

How do i change the path?


8 answers

1 accepted

This widget could not be displayed.

From studying this link, https://confluence.atlassian.com/display/DOC/Confluence+Home+Directoryyou could set the property "attachments.dir" in confluence.cfg.xml to point my attachment directory to wherever you want. After setting the config below and restart confluence, that should fix the issue.

<property name="attachments.dir">/home/confluence-home/attachments/</property>

This widget could not be displayed.

Oops, that doesn't look right. Do you have any attachments on the system? What happens when you click on 'Edit'?

This widget could not be displayed.

Hi Jobin,

This widget could not be displayed.

My recommendation would be to save the attachments in database, to avoid the hassles of backing up both folders and DB. But if you want to continue with file system, you might want to try this: https://confluence.atlassian.com/display/CONFKB/Manually+change+attachment+data+storage+location

Seems Confluence is having trouble finding the current attachment path and hence make sure you back up everything before making any changes.

I tried that and it didn't work. This is the configuration I pulled from the query showing that it's a file based attachments storage however i didn't see a path to the actual file system storage.

I just moved the confluence from onDemand.

This widget could not be displayed.

I tried that and it didn't work. This is the configuration I pulled from the query showing that it's a file based attachments storage however i didn't see a path to the actual file system storage.

<attachmentDataStore>file.system.based.attachments.storage</attachmentDataStore>

This widget could not be displayed.
and I just moved the confluence from onDemand.

&lt;settings&gt;
  &lt;doNotSave&gt;false&lt;/doNotSave&gt;
  &lt;allowCamelCase&gt;false&lt;/allowCamelCase&gt;
  &lt;allowTrackbacks&gt;false&lt;/allowTrackbacks&gt;
  &lt;allowThreadedComments&gt;true&lt;/allowThreadedComments&gt;
  &lt;externalUserManagement&gt;false&lt;/externalUserManagement&gt;
  &lt;denyPublicSignup&gt;true&lt;/denyPublicSignup&gt;
  &lt;emailAdminMessageOff&gt;false&lt;/emailAdminMessageOff&gt;
  &lt;almostSupportPeriodEndMessageOff&gt;false&lt;/almostSupportPeriodEndMessageOff&gt;
  &lt;senMissingInLicenseMessageOff&gt;true&lt;/senMissingInLicenseMessageOff&gt;
  &lt;baseUrlAdminMessageOff&gt;false&lt;/baseUrlAdminMessageOff&gt;
  &lt;allowRemoteApi&gt;true&lt;/allowRemoteApi&gt;
  &lt;allowRemoteApiAnonymous&gt;false&lt;/allowRemoteApiAnonymous&gt;
  &lt;antiXssMode&gt;true&lt;/antiXssMode&gt;
  &lt;gzippingResponse&gt;false&lt;/gzippingResponse&gt;
  &lt;disableLogo&gt;false&lt;/disableLogo&gt;
  &lt;sharedMode&gt;false&lt;/sharedMode&gt;
  &lt;enableDidYouMean&gt;true&lt;/enableDidYouMean&gt;
  &lt;enableQuickNav&gt;true&lt;/enableQuickNav&gt;
  &lt;enableSpaceStyles&gt;false&lt;/enableSpaceStyles&gt;
  &lt;enableOpenSearch&gt;true&lt;/enableOpenSearch&gt;
  &lt;showSystemInfoIn500Page&gt;false&lt;/showSystemInfoIn500Page&gt;
  &lt;showApplicationTitle&gt;false&lt;/showApplicationTitle&gt;
  &lt;referrerSettings&gt;
    &lt;collectReferrerData&gt;true&lt;/collectReferrerData&gt;
    &lt;excludedReferrers/&gt;
    &lt;hideExternalReferrers&gt;false&lt;/hideExternalReferrers&gt;
  &lt;/referrerSettings&gt;
  &lt;captchaSettings&gt;
    &lt;enableCaptcha&gt;false&lt;/enableCaptcha&gt;
    &lt;enableDebug&gt;false&lt;/enableDebug&gt;
    &lt;captchaGroups class="list"/&gt;
    &lt;exclude&gt;registered&lt;/exclude&gt;
  &lt;/captchaSettings&gt;
  &lt;customHtmlSettings&gt;
    &lt;beforeHeadEnd&gt;&lt;/beforeHeadEnd&gt;
    &lt;afterBodyStart&gt;&lt;/afterBodyStart&gt;
    &lt;beforeBodyEnd&gt;&lt;/beforeBodyEnd&gt;
  &lt;/customHtmlSettings&gt;
  &lt;colourSchemesSettings&gt;
    &lt;colourSchemeType&gt;custom&lt;/colourSchemeType&gt;
  &lt;/colourSchemesSettings&gt;
  &lt;loginManagerSettings&gt;
    &lt;enableElevatedSecurityCheck&gt;true&lt;/enableElevatedSecurityCheck&gt;
    &lt;loginAttemptsThreshold&gt;3&lt;/loginAttemptsThreshold&gt;
  &lt;/loginManagerSettings&gt;
  &lt;confluenceHttpParameters&gt;
    &lt;connectionTimeout&gt;10000&lt;/connectionTimeout&gt;
    &lt;socketTimeout&gt;10000&lt;/socketTimeout&gt;
    &lt;enabled&gt;true&lt;/enabled&gt;
  &lt;/confluenceHttpParameters&gt;
  &lt;attachmentMaxSize&gt;2204857600&lt;/attachmentMaxSize&gt;
  &lt;draftSaveInterval&gt;30000&lt;/draftSaveInterval&gt;
  &lt;maxAttachmentsInUI&gt;5&lt;/maxAttachmentsInUI&gt;
  &lt;siteTitle&gt;mumosystems Confluence&lt;/siteTitle&gt;
  &lt;documentationUrlPattern&gt;http://docs.atlassian.com/confluence/docs-{0}/{1}&lt;/documentationUrlPattern&gt;
  &lt;customContactMessage&gt;Please enter information about your request for the site administrators. If you are reporting an error please be sure you include information on what you were doing and the time the problem occurred.&lt;/customContactMessage&gt;
  &lt;showContactAdministratorsForm&gt;true&lt;/showContactAdministratorsForm&gt;
  &lt;emailAddressVisibility&gt;email.address.public&lt;/emailAddressVisibility&gt;
  &lt;defaultEncoding&gt;UTF-8&lt;/defaultEncoding&gt;
  &lt;maxThumbHeight&gt;300&lt;/maxThumbHeight&gt;
  &lt;maxThumbWidth&gt;300&lt;/maxThumbWidth&gt;
  &lt;backupAttachmentsDaily&gt;true&lt;/backupAttachmentsDaily&gt;
  &lt;backupDaily&gt;false&lt;/backupDaily&gt;
  &lt;nofollowExternalLinks&gt;true&lt;/nofollowExternalLinks&gt;
  &lt;indexingLanguage&gt;english&lt;/indexingLanguage&gt;
  &lt;globalDefaultLocale&gt;en_GB&lt;/globalDefaultLocale&gt;
  &lt;dailyBackupFilePrefix&gt;backup-&lt;/dailyBackupFilePrefix&gt;
  &lt;dailyBackupDateFormatPattern&gt;yyyy_MM_dd&lt;/dailyBackupDateFormatPattern&gt;
  &lt;supportRequestEmail&gt;confluence-autosupportrequests@atlassian.com&lt;/supportRequestEmail&gt;
  &lt;defaultSpaceHomepageTitle&gt;Home&lt;/defaultSpaceHomepageTitle&gt;
  &lt;baseUrl&gt;https://confluence.mumosystems.com&lt;/baseUrl&gt;
  &lt;attachmentDataStore&gt;file.system.based.attachments.storage&lt;/attachmentDataStore&gt;
  &lt;displayLinkIcons&gt;false&lt;/displayLinkIcons&gt;
  &lt;addWildcardsToUserAndGroupSearches&gt;true&lt;/addWildcardsToUserAndGroupSearches&gt;
  &lt;xsrfAddComments&gt;true&lt;/xsrfAddComments&gt;
  &lt;webSudoTimeout&gt;10&lt;/webSudoTimeout&gt;
  &lt;webSudoEnabled&gt;false&lt;/webSudoEnabled&gt;
  &lt;defaultUsersGroup&gt;users&lt;/defaultUsersGroup&gt;
  &lt;attachmentSecurityLevel&gt;smart&lt;/attachmentSecurityLevel&gt;
  &lt;enableJavascriptTop&gt;true&lt;/enableJavascriptTop&gt;
  &lt;supportPeriodEndMessageOff&gt;false&lt;/supportPeriodEndMessageOff&gt;
  &lt;enableWysiwyg&gt;true&lt;/enableWysiwyg&gt;
  &lt;useWysiwygByDefault&gt;true&lt;/useWysiwygByDefault&gt;
  &lt;numberOfBreadcrumbAncestors&gt;1&lt;/numberOfBreadcrumbAncestors&gt;
  &lt;viewSpaceGoesToSpaceSummary&gt;false&lt;/viewSpaceGoesToSpaceSummary&gt;
  &lt;maxSimultaneousQuickNavRequests&gt;40&lt;/maxSimultaneousQuickNavRequests&gt;
  &lt;maxRssItems&gt;200&lt;/maxRssItems&gt;
  &lt;rssTimeout&gt;60&lt;/rssTimeout&gt;
  &lt;pageTimeout&gt;120&lt;/pageTimeout&gt;
&lt;/settings&gt;

This widget could not be displayed.
&lt;settings&gt;
  &lt;doNotSave&gt;false&lt;/doNotSave&gt;
  &lt;allowCamelCase&gt;false&lt;/allowCamelCase&gt;
  &lt;allowTrackbacks&gt;false&lt;/allowTrackbacks&gt;
  &lt;allowThreadedComments&gt;true&lt;/allowThreadedComments&gt;
  &lt;externalUserManagement&gt;false&lt;/externalUserManagement&gt;
  &lt;denyPublicSignup&gt;true&lt;/denyPublicSignup&gt;
  &lt;emailAdminMessageOff&gt;false&lt;/emailAdminMessageOff&gt;
  &lt;almostSupportPeriodEndMessageOff&gt;false&lt;/almostSupportPeriodEndMessageOff&gt;
  &lt;senMissingInLicenseMessageOff&gt;true&lt;/senMissingInLicenseMessageOff&gt;
  &lt;baseUrlAdminMessageOff&gt;false&lt;/baseUrlAdminMessageOff&gt;
  &lt;allowRemoteApi&gt;true&lt;/allowRemoteApi&gt;
  &lt;allowRemoteApiAnonymous&gt;false&lt;/allowRemoteApiAnonymous&gt;
  &lt;antiXssMode&gt;true&lt;/antiXssMode&gt;
  &lt;gzippingResponse&gt;false&lt;/gzippingResponse&gt;
  &lt;disableLogo&gt;false&lt;/disableLogo&gt;
  &lt;sharedMode&gt;false&lt;/sharedMode&gt;
  &lt;enableDidYouMean&gt;true&lt;/enableDidYouMean&gt;
  &lt;enableQuickNav&gt;true&lt;/enableQuickNav&gt;
  &lt;enableSpaceStyles&gt;false&lt;/enableSpaceStyles&gt;
  &lt;enableOpenSearch&gt;true&lt;/enableOpenSearch&gt;
  &lt;showSystemInfoIn500Page&gt;false&lt;/showSystemInfoIn500Page&gt;
  &lt;showApplicationTitle&gt;false&lt;/showApplicationTitle&gt;
  &lt;referrerSettings&gt;
    &lt;collectReferrerData&gt;true&lt;/collectReferrerData&gt;
    &lt;excludedReferrers/&gt;
    &lt;hideExternalReferrers&gt;false&lt;/hideExternalReferrers&gt;
  &lt;/referrerSettings&gt;
  &lt;captchaSettings&gt;
    &lt;enableCaptcha&gt;false&lt;/enableCaptcha&gt;
    &lt;enableDebug&gt;false&lt;/enableDebug&gt;
    &lt;captchaGroups class="list"/&gt;
    &lt;exclude&gt;registered&lt;/exclude&gt;
  &lt;/captchaSettings&gt;
  &lt;customHtmlSettings&gt;
    &lt;beforeHeadEnd&gt;&lt;/beforeHeadEnd&gt;
    &lt;afterBodyStart&gt;&lt;/afterBodyStart&gt;
    &lt;beforeBodyEnd&gt;&lt;/beforeBodyEnd&gt;
  &lt;/customHtmlSettings&gt;
  &lt;colourSchemesSettings&gt;
    &lt;colourSchemeType&gt;custom&lt;/colourSchemeType&gt;
  &lt;/colourSchemesSettings&gt;
  &lt;loginManagerSettings&gt;
    &lt;enableElevatedSecurityCheck&gt;true&lt;/enableElevatedSecurityCheck&gt;
    &lt;loginAttemptsThreshold&gt;3&lt;/loginAttemptsThreshold&gt;
  &lt;/loginManagerSettings&gt;
  &lt;confluenceHttpParameters&gt;
    &lt;connectionTimeout&gt;10000&lt;/connectionTimeout&gt;
    &lt;socketTimeout&gt;10000&lt;/socketTimeout&gt;
    &lt;enabled&gt;true&lt;/enabled&gt;
  &lt;/confluenceHttpParameters&gt;
  &lt;attachmentMaxSize&gt;2204857600&lt;/attachmentMaxSize&gt;
  &lt;draftSaveInterval&gt;30000&lt;/draftSaveInterval&gt;
  &lt;maxAttachmentsInUI&gt;5&lt;/maxAttachmentsInUI&gt;
  &lt;siteTitle&gt;mumosystems Confluence&lt;/siteTitle&gt;
  &lt;documentationUrlPattern&gt;http://docs.atlassian.com/confluence/docs-{0}/{1}&lt;/documentationUrlPattern&gt;
  &lt;customContactMessage&gt;Please enter information about your request for the site administrators. If you are reporting an error please be sure you include information on what you were doing and the time the problem occurred.&lt;/customContactMessage&gt;
  &lt;showContactAdministratorsForm&gt;true&lt;/showContactAdministratorsForm&gt;
  &lt;emailAddressVisibility&gt;email.address.public&lt;/emailAddressVisibility&gt;
  &lt;defaultEncoding&gt;UTF-8&lt;/defaultEncoding&gt;
  &lt;maxThumbHeight&gt;300&lt;/maxThumbHeight&gt;
  &lt;maxThumbWidth&gt;300&lt;/maxThumbWidth&gt;
  &lt;backupAttachmentsDaily&gt;true&lt;/backupAttachmentsDaily&gt;
  &lt;backupDaily&gt;false&lt;/backupDaily&gt;
  &lt;nofollowExternalLinks&gt;true&lt;/nofollowExternalLinks&gt;
  &lt;indexingLanguage&gt;english&lt;/indexingLanguage&gt;
  &lt;globalDefaultLocale&gt;en_GB&lt;/globalDefaultLocale&gt;
  &lt;dailyBackupFilePrefix&gt;backup-&lt;/dailyBackupFilePrefix&gt;
  &lt;dailyBackupDateFormatPattern&gt;yyyy_MM_dd&lt;/dailyBackupDateFormatPattern&gt;
  &lt;supportRequestEmail&gt;confluence-autosupportrequests@atlassian.com&lt;/supportRequestEmail&gt;
  &lt;defaultSpaceHomepageTitle&gt;Home&lt;/defaultSpaceHomepageTitle&gt;
  &lt;baseUrl&gt;https://confluence.mumosystems.com&lt;/baseUrl&gt;
  &lt;attachmentDataStore&gt;file.system.based.attachments.storage&lt;/attachmentDataStore&gt;
  &lt;displayLinkIcons&gt;false&lt;/displayLinkIcons&gt;
  &lt;addWildcardsToUserAndGroupSearches&gt;true&lt;/addWildcardsToUserAndGroupSearches&gt;
  &lt;xsrfAddComments&gt;true&lt;/xsrfAddComments&gt;
  &lt;webSudoTimeout&gt;10&lt;/webSudoTimeout&gt;
  &lt;webSudoEnabled&gt;false&lt;/webSudoEnabled&gt;
  &lt;defaultUsersGroup&gt;users&lt;/defaultUsersGroup&gt;
  &lt;attachmentSecurityLevel&gt;smart&lt;/attachmentSecurityLevel&gt;
  &lt;enableJavascriptTop&gt;true&lt;/enableJavascriptTop&gt;
  &lt;supportPeriodEndMessageOff&gt;false&lt;/supportPeriodEndMessageOff&gt;
  &lt;enableWysiwyg&gt;true&lt;/enableWysiwyg&gt;
  &lt;useWysiwygByDefault&gt;true&lt;/useWysiwygByDefault&gt;
  &lt;numberOfBreadcrumbAncestors&gt;1&lt;/numberOfBreadcrumbAncestors&gt;
  &lt;viewSpaceGoesToSpaceSummary&gt;false&lt;/viewSpaceGoesToSpaceSummary&gt;
  &lt;maxSimultaneousQuickNavRequests&gt;40&lt;/maxSimultaneousQuickNavRequests&gt;
  &lt;maxRssItems&gt;200&lt;/maxRssItems&gt;
  &lt;rssTimeout&gt;60&lt;/rssTimeout&gt;
  &lt;pageTimeout&gt;120&lt;/pageTimeout&gt;
&lt;/settings&gt;

This widget could not be displayed.

To chime in, I moved the attachments from C drive to D drive as they were over 20GB. I saw an article from Atlassian that they don’t recommend using the DB for large attachment storage. https://confluence.atlassian.com/display/DOC/Attachment+Storage+Configuration additionally there was a link to usage case summarizing the hurtles and dilemmas of migrating into a DB, http://www.scandio.de/2013/05/confluence-attachment-migration-the-safe-way-2/
my modification of the code looked like this.
“ <property name="attachments.dir">D:\Attachments\Confluence\attachments</property> “

This worked like a charm… now attachments are on RAID5 volume and performance is a bit better.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

470 views 6 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you