--- title: "Upgrade SecureAttachment" slug: "upgrade-secureattachment" updated: 2022-07-13T20:56:13Z published: 2022-07-13T20:56:13Z canonical: "docs.blackthorn.io/upgrade-secureattachment" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.blackthorn.io/llms.txt > Use this file to discover all available pages before exploring further. # Upgrade SecureAttachment ## BEFORE you upgrade the package 1. Check that the AuditBatchSize for Attachment and ContentVersion is 10. - Navigate to Setup > Custom Code > Custom Metadata Types > Manager. ![audit batch size](https://cdn.document360.io/f977eec0-500f-40a3-b663-724a51f78075/Images/Documentation/audit%20batch%20size.png) 2. Update your DetectionFields for ContentVersion and Attachment. - Navigate to Setup > Custom Code > Custom Metadata Types > Manager. ![detection fields](https://cdn.document360.io/f977eec0-500f-40a3-b663-724a51f78075/Images/Documentation/detection%20fields.png) - **ContentVersion:** VersionData, FileType, FileExtension, Title, ContentDocumentId - **Attachment:** Body, ContentType, Name, ParentId ## NEXT follow the steps below to upgrade your SecureAttachment package 1. Navigate to the AppExchange from your Salesforce org, or go directly to Blackthorn's [Candy Shop listing for Compliance](https://candyshop.blackthorn.io/products/blackthorn-compliance/latest). 2. Click **Get It Now** on the AppExchange listing, and follow the install prompts. 3. Once the upgrade is complete, check the following configurations. 4. Re-enter API Credentials provided by Blackthorn Compliance Support (contact support if you need them again). ![check credentials](https://cdn.document360.io/f977eec0-500f-40a3-b663-724a51f78075/Images/Documentation/check%20credentials.png) 5. Check that your Remote Site Setting URLs are exactly as follows and active. - Navigate to Setup > Security > Remote Site Settings > FilesAPI > Edit. ![edit](https://cdn.document360.io/f977eec0-500f-40a3-b663-724a51f78075/Images/Documentation/edit.png) 6. Check your SecureAttachment Settings: ![settings detail](https://cdn.document360.io/f977eec0-500f-40a3-b663-724a51f78075/Images/Documentation/settings%20detail.png) You should only have APIs enabled for the credentials that you previously entered. If you entered two API credentials (Images API and Files API) then both APIs should be enabled. If you only entered credentials for Files API, then uncheck the checkbox for Images API. Congratulations! You have finished upgrading SecureAttachment.