The Storage service is responsible for storing and retrieving files. It provides REST endpoints for uploading and downloading files and uses the messaging queue to send status updates for files.
Key functions of the Storage Service include:
•Storing the final Networks Locator results as ZIP files.
•Providing download links for the final results (accessible only to the user that created the request or an admin).
•Tracking the number of downloads for each file.
•Expiring files after a configurable period.
Setting |
Type |
Description |
vertigis.storage.expiration.enabled |
boolean |
Enables or disables expiration for stored files. true | false |
vertigis.storage.expiration.duration |
int |
Specifies the number of days after which a locate request should expire. |
vertigis.storage.expiration.schedule-cron |
string |
Cron Expression (Quartz style) e.g.: "0 0 6 * * ?" Runs every day at 6 o'clock in the morning and check whether a file is expired or not. |
vertigis.storage.security.file-upload.max-file-name-length |
int |
Specifies the maximum length (in characters) allowed for a file name. |
vertigis.storage.security.file-upload.max-file-size-bytes |
int |
Defines the maximum file size allowed for uploads, in bytes. |
vertigis.storage.security.file-upload.allowed-file-extensions |
string |
Lists the file extensions that are allowed for uploads (e.g., .pdf, .png, .csv). |
vertigis.storage.security.file-upload.mime-type-mapping |
object |
Maps file extensions to their corresponding MIME types to ensure correct content-type handling. Purpose: Helps the application interpret the uploaded file based on its extension and ensures it is processed correctly. Example Mapping: "mime-type-mapping": { |
vertigis.storage.<document-type>.expiration.enabled |
boolean |
Enables or disables expiration for a specific document type. true | false |
vertigis.storage.<document-type>.expiration.duration |
int |
Specifies the number of days after which a specific document type should expire. |
Setting |
Description |
locator-result |
Final request artifact (ZIP-File). |
locator-work |
Temporary work documents (e.g. a PDF map of a specific branch). |
locator-documents |
Static document. |
locator-templates |
Template files for sending E-Mails and for creating dynamic accompanying document like a letter. |
{
"vertigis": {
"storage": {
"expiration": {
"schedule-cron": "0 0 6 * * ?"
},
"security": {
"file-upload": {
"max-file-name-length": 200,
"max-file-size": 1000000,
"allowed-file-extensions": ".pdf,.qute,.png,.csv",
"mime-type-mapping": {
".html": "text/html",
".pdf": "application/pdf",
".qute": "application/xslfo+xml",
".txt": "text/plain",
".pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
".csv": "text/csv",
".json": "application/json",
".xml": "application/xml",
".jpg": "image/jpeg",
".jpeg": "image/jpeg",
".png": "image/png",
".gif": "image/gif",
".svg": "image/svg+xml",
".webp": "image/webp",
".zip": "application/zip",
".rar": "application/vnd.rar",
".tar": "application/x-tar",
".gz": "application/gzip",
".7z": "application/x-7z-compressed"
}
}
},
"locator-result": {
"expiration": {
"duration": 3,
"enabled": true
}
}
}
}
}
Files that are managed by the Process Manager, such as document templates, mail templates and static documents, are uploaded and replaced in the Admin app. If you remove a file from the Process Manager configuration, the stored file is not deleted. It stays in the storage and can block a later upload with the same file name. The Admin app offers two ways to delete such files.
1.In the Admin app, open Process Manager > Edit > Documents.
2.Click the delete icon next to the file. The icon is not available for files that are inherited from the default configuration.
3.Confirm the deletion in the dialog. The dialog names the file and checks whether the file is used elsewhere in the configuration.
The system removes the file from the configuration first and deletes the stored file afterwards. If the deletion of the file fails, only an unused file remains. You can try again or delete the file in Storage > Files. Files that are still used elsewhere and built-in files cannot be deleted. The dialog lists where the file is used.
Open Storage > Files in the Admin app. The page lists the files of the Process Manager with one of the following statuses:
•Referenced: The file is used in the saved Process Manager configuration.
•Unreferenced: The file is not used anywhere. You can delete it after you confirm.
•Built-in: The file is delivered with Networks Locator. It cannot be deleted.
You can sort the list by the last modified date and by the status. Before a file is deleted, the system checks the references again. If it cannot read the configuration reliably, it does not list or delete any files.
If the upload or replacement of a template or document fails, the Admin app shows a message below the affected field. It names the cause and tells you what to do. Possible causes are:
•A file with this name already exists. Delete the existing file first (see above) or choose another name.
•The file name is too long.
•The file type is not allowed.
•The file is too large.
•The content of the file does not match its file type.
The limits for the file name length, the file size and the allowed file types are set in the security.file-upload section of the storage configuration (see the sample above).