Skip to content

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

ParameterTypeDescription
tokenStringUser token
applicationIdStringApplication ID
fileMultipartFileFile

Return value type: Attachment

Application Resource Library files are stored in the following directory

shell
${companyId}/${appDefineId}/${fileId}
  • ${appDefineId} is the application identifier

File access address is as follows

shell
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

ParameterTypeDescription
tokenStringUser token
applicationIdStringApplication ID
moduleIdStringData table module ID
fieldIdStringData table field ID
fileMultipartFileFile

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

shell
https://next.informat.cn/web0/file/field/${appId}/${tableId}/${fieldId}/${attachmentId}

Access via identifier

shell
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

shell
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:

shell
${companyId}/${appId}/automatic/${fileId}

Subsequent execution steps can access files using the informat.storage script object

Generate QR Code via URL

shell
https://next.informat.cn/web0/file/qrcode?content=${content}&size=200
ParameterTypeDescription
contentStringQR code content
sizeIntegerSize
error_correctionStringError correction (optional, default H)
fore_colorIntegerForeground color (QR code color) e.g: 0xff0000 Default black
back_colorIntegerBackground color, default white, null means transparent
marginIntegerMargin 1~4 Default 2
qr_versionIntegerSet information amount in QR code, can be set to integer 0-40
ratioIntegerLogo 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% correction

Generate Barcode via URL

shell
https://next.informat.cn/web0/file/barcode?content=${content}&width=200&height=50&format=CODE_39
ParameterTypeDescription
contentStringBarcode content
widthIntegerWidth
heightIntegerHeight
font_sizeIntegerText size (default 18)
formatStringFormat
hidden_textBooleanHide 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

shell
${companyId}/${appDefineId}/${moduleId}/${resId}

Example: Resource index.html storage path

shell
g09aj7cus3d8s/com.my.MyApp/mhe9tn1u4ocz6/41e385d507d5446cb0fb33777d6c3073.html

Access address

shell
https://next.informat.cn/web0/website/${appId}/${moduleId}/${resPath}

Example: Access address for resource index.html

shell
https://next.informat.cn/web0/website/croe0zft168y3/website/index.html