Shared Storage
Overview
Informat uniformly uses S3 protocol-based shared storage to save files uploaded by users. Data generated within applications is stored in different directories according to different scenarios. Shared storage is isolated based on team ID and application ID.
Application Resource Library Files
Uploading Resource Library Files
Request URL: https://next.informat.cn/web0/main/upload_app_res Request Method: post
| Parameter | Type | Description |
|---|---|---|
| token | String | User token |
| applicationId | String | Application ID |
| file | MultipartFile | File |
Return value type: Attachment
Application Resource Library files are stored in the following directory
${companyId}/${appDefineId}/${fileId}${appDefineId}is the application identifier
File access address is as follows
https://next.informat.cn/web0/main/app_res/${companyId}/${appDefineId}/${fileId}Data Table Attachment Fields
Uploading Data Table Attachments
Request URL: https://next.informat.cn/web0/file/upload Request Method: post
| Parameter | Type | Description |
|---|---|---|
| token | String | User token |
| applicationId | String | Application ID |
| moduleId | String | Data table module ID |
| fieldId | String | Data table field ID |
| file | MultipartFile | File |
Return value type: Attachment
Data table attachment fields are stored in the following directory
${companyId}/${appId}/${tableId}/${fieldId}/${fileId}File access address is as follows
Access via ID
https://next.informat.cn/web0/file/field/${appId}/${tableId}/${fieldId}/${attachmentId}Access via identifier
https://next.informat.cn/web0/file/fieldkey/${appId}/${tableKey}/${fieldKey}/${attachmentId}TIP
For image files, the system automatically generates thumbnails, which are stored in the same directory as the original file.
If file links are used outside the Informat platform, you need to enable Allow Public Access in the attachment field settings.
Images and Attachments in Comments
Comment attachment fields are stored in the following directory
${companyId}/${appId}/${tableId}/comment/${fileId}File access address is as follows
https://next.informat.cn/web0/file/comment_file/${appId}/${moduleId}/{fileId}Files Uploaded via Automation
Files uploaded using the Upload File step in automation are stored in the following directory:
${companyId}/${appId}/automatic/${fileId}Subsequent execution steps can access files using the informat.storage script object
Generate QR Code via URL
https://next.informat.cn/web0/file/qrcode?content=${content}&size=200| Parameter | Type | Description |
|---|---|---|
| content | String | QR code content |
| size | Integer | Size |
| error_correction | String | Error correction (optional, default H) |
| fore_color | Integer | Foreground color (QR code color) e.g: 0xff0000 Default black |
| back_color | Integer | Background color, default white, null means transparent |
| margin | Integer | Margin 1~4 Default 2 |
| qr_version | Integer | Set information amount in QR code, can be set to integer 0-40 |
| ratio | Integer | Logo scaling ratio coefficient in QR code, e.g., 5 means 1/5 of minimum length Default 6 |
error_correction optional values:
L,//~7% correction
M,//~15% correction
Q,//~25% correction
H //~30% correctionGenerate Barcode via URL
https://next.informat.cn/web0/file/barcode?content=${content}&width=200&height=50&format=CODE_39| Parameter | Type | Description |
|---|---|---|
| content | String | Barcode content |
| width | Integer | Width |
| height | Integer | Height |
| font_size | Integer | Text size (default 18) |
| format | String | Format |
| hidden_text | Boolean | Hide text Default false |
format optional values:
AZTEC,
CODABAR,
CODE_39,
CODE_93,
CODE_128,
DATA_MATRIX,
EAN_8,
EAN_13,
ITF,
MAXICODE,
PDF_417,
QR_CODE,
RSS_14,
RSS_EXPANDED,
UPC_A,
UPC_E,
UPC_EAN_EXTENSION;Resource and Component Designer
Website and resource hosting resources are stored in the following directory
${companyId}/${appDefineId}/${moduleId}/${resId}Example: Resource index.html storage path
g09aj7cus3d8s/com.my.MyApp/mhe9tn1u4ocz6/41e385d507d5446cb0fb33777d6c3073.htmlAccess address
https://next.informat.cn/web0/website/${appId}/${moduleId}/${resPath}Example: Access address for resource index.html
https://next.informat.cn/web0/website/croe0zft168y3/website/index.html
