Azure configuration and setup
The Azure configuration and setup process begins with a dedicated settings page that allows users to manage Azure Blob Storage connections. This page displays essential connection details, including the connection string and container name. A default connection string can be configured using the azure storage connection string application property. It’s important to note that the container must already exist in the Azure storage account before establishing the connection. To ensure everything is set up correctly, a "test connection" feature is available, which verifies the connection status and confirms if it is successful.
For document upload and storage, users can attach files such as Word documents or PDFs. When a file is uploaded, the system records the attachment name in the database and flags it as an Azure document by setting a specific indicator to true. However, the actual content of the document is not stored in the database—it remains null. Instead, the system creates a folder in Azure named after the notice ID, and the uploaded file is stored within that folder.
The document management and deletion functionality includes options for downloading and removing files. A hard delete occurs when a user clicks "remove" on an attachment, which permanently deletes the file from Azure. For specific attachments, such as those related to preservation notices, a soft delete process is used. In this case, the file is marked as removed in the notice, and a .remove extension is added to the file name in Azure. If needed, the document can be restored by navigating to the "review and send" step and clicking the "reset notice content" button. This action removes the .remove extension and makes the document visible again.