Browse Source

feat(nc-gui): revise maxAttachmentSize

pull/4931/head
Wing-Kam Wong 2 years ago
parent
commit
b5feda7494
  1. 5
      packages/nc-gui/components/smartsheet/column/AttachmentOptions.vue

5
packages/nc-gui/components/smartsheet/column/AttachmentOptions.vue

@ -25,7 +25,8 @@ setAdditionalValidations({
// set default value
vModel.value.meta = {
maxNumberOfAttachments: 10,
maxAttachmentSize: 5000, // 5GB
// TODO: take care of NC_ATTACHMENT_FIELD_SIZE
maxAttachmentSize: 20, // 20 MB
unsupportedAttachmentMimeTypes: [],
...vModel.value.meta,
}
@ -189,7 +190,7 @@ const filterOption = (val: string, option: Option) => {
</a-col>
<a-col :span="12">
<a-form-item v-bind="validateInfos['meta.maxAttachmentSize']" label="Max Attachment Size">
<a-form-item v-bind="validateInfos['meta.maxAttachmentSize']" label="Max Attachment Size (MB)">
<a-input-number v-model:value="vModel.meta.maxAttachmentSize" class="!w-full nc-extdb-host-port" />
</a-form-item>
</a-col>

Loading…
Cancel
Save