BinaryStorage.json
Cautions¶
When changing parameters, please refer to "Confirmation When Changing Parameters".
Limitations¶
- When setting "Rds" for TemporaryBinaryStorageProvider, "Rds" must also be set for Provider, and UseStorageSelect must be set to false. *If the appropriate values are not set, files cannot be attached correctly.
Setting Values¶
The setting values for this parameter file are as follows.
| Parameter name | e.g. | Description |
|---|---|---|
| Provider | Rds | Specify how to store the data of attachments and pasted images. Set "Rds" to store in the database, "Local" to store in storage, and "AzureBlob" to store in Azure Blob Storage. |
| AzureBlobStorageAccountUri | "https://storagename.blob.core. windows.net" | Set the URI of the Azure Blob Storage account used as the storage destination when Provider is set to AzureBlob. Azure credentials (DefaultAzureCredential) are used for the connection. Can be registered in system environment variables. |
| AzureBlobContainerName | "pleasanter-binaries" | Set the name of the Blob container used as the storage destination when Provider is set to AzureBlob. If null, "pleasanter-binaries" is used. The container is not created automatically, so create it in advance. Can be registered in system environment variables. |
| Path | C:\\Data | Set the destination folder for attachments when Provider is set to Local (backslashes must be escaped). *Give IIS_IUSERS access to the target folder. |
| Attachments | true | Specify true/false for the attachment function. |
| Images | true | Specify true/false for the image pasting function in the description column or comment. To enable pasting of images, both Attachments and Images must be set to true. |
| RestoreLocalFiles | true | When Provider is Local, if the value is set to true, local files will not be deleted even if a record with attachments is deleted. If a deleted record is restored, the attachments will also be available. If Provider is "Local" and the value is false, attachments cannot be restored even if a deleted record is restored. |
| LimitQuantity | 30 | Set the initial value for the file limit. |
| MinQuantity | 1 | Set the minimum value for the file limit. |
| MaxQuantity | 100 | Set the maximum value for the file limit. |
| LimitSize | 50 | Set the initial value for the capacity limit (MB). |
| MinSize | 1 | Set the minimum value for the capacity limit (MB). |
| MaxSize | 50 | Set the maximum value for the capacity limit (MB). |
| LimitTotalSize | 1024 | Set the initial value for the total capacity limit (MB). |
| TotalMinSize | 1 | Set the minimum value for the total capacity limit (MB). |
| TotalMaxSize | 1024 | Set the maximum value for the total capacity limit (MB). |
| LocalFolderLimitSize | 3072 | Set the initial value for the capacity limit (MB) for the local folder. |
| LocalFolderMinSize | 1 | Set the lower limit of the capacity limit (MB) for the local folder. |
| LocalFolderMaxSize | 3072 | Set the upper limit of the capacity limit (MB) for the local folder. |
| LocalFolderLimitTotalSize | 30720 | Set the initial value of the total capacity limit (MB) for the local folder. |
| LocalFolderTotalMinSize | 1 | Set the lower limit of the total capacity limit (MB) for the local folder. |
| LocalFolderTotalMaxSize | 30720 | Set the upper limit of the total capacity limit (MB) for the local folder. |
| UseStorageSelect | false | Set true if you want to change the "Storage Destination" for each attachment column. |
| DefaultBinaryStorageProvider | "DataBase" | Set the default value of the "Storage Destination" for attachment columns when UseStorageSelect is true. Set "DataBase" if you want to save to a database, "LocalFolder" if you want to save to a local folder, or "AutoDataBaseOrLocalFolder" if you want to switch automatically based on size. |
| TemporaryBinaryStorageProvider | "Rds" | If you want to save the uploaded file under the temporary folder (App_Data\Temp), specify null. If you want to save it directly to the database, specify "Rds". If you specify "Rds", check the above restrictions. *1 |
| ImageLimitSize | 10 | Set the maximum number of pixels (px) on one side when registering an image. |
| ThumbnailLimitSize | 10 | Set the maximum number of pixels (px) on one side when registering a thumbnail. |
| ThumbnailMinSize | 100 | Set the minimum number of pixels (px) on one side when specifying the thumbnail size. |
| ThumbnailMaxSize | 1000 | Set the maximum number of pixels (px) on one side when specifying the thumbnail size. |
| BrowserAllowMimeTypes | ["application/pdf","image/png"] | Sets the MIME types of files allowed for preview display in an array. |
*1 The "Rds" of TemporaryBinaryStorageProvider is intended to be used in an environment where there are multiple servers with Pleasanter installed via a load balancer. For details, please refer to the FAQ below.
FAQ: Attachments cannot be uploaded or registered correctly in an environment where there are multiple servers with Pleasanter installed on the backend of a load balancer | Pleasanter
Supported Versions¶
| Supported Version | Content |
|---|---|
| 1.4.21.0 and later | Added BrowserAllowMimeTypes |