This is an automated email from the ASF dual-hosted git repository.

lufei pushed a commit to branch refactor/storage
in repository https://gitbox.apache.org/repos/asf/answer-plugins.git

commit 80c52ffe71889314f22d3e5bfbe541ce96f0cbc0
Author: Luffy <[email protected]>
AuthorDate: Mon Feb 24 18:19:57 2025 +0800

    refactor(storage): remove max file size configuration from translations
---
 storage-aliyunoss/i18n/en_US.yaml     | 5 -----
 storage-aliyunoss/i18n/translation.go | 2 --
 storage-aliyunoss/i18n/zh_CN.yaml     | 5 -----
 storage-aliyunoss/info.yaml           | 2 +-
 storage-s3/i18n/en_US.yaml            | 5 -----
 storage-s3/i18n/translation.go        | 2 --
 storage-s3/i18n/zh_CN.yaml            | 5 -----
 storage-s3/info.yaml                  | 2 +-
 storage-s3/s3.go                      | 1 -
 9 files changed, 2 insertions(+), 27 deletions(-)

diff --git a/storage-aliyunoss/i18n/en_US.yaml 
b/storage-aliyunoss/i18n/en_US.yaml
index bb3935b..257465a 100644
--- a/storage-aliyunoss/i18n/en_US.yaml
+++ b/storage-aliyunoss/i18n/en_US.yaml
@@ -54,11 +54,6 @@ plugin:
             other: Access URL prefix
           description:
             other: prefix of the final access address of the uploaded file, 
ending with '/' https://example.com/xxx/
-        max_file_size:
-          title:
-            other: Maximum file size(MB)
-          description:
-            other: Limit the maximum size of uploaded files, in MB, default is 
10MB
       err:
         mis_storage_config:
           other: Wrong storage configuration causes upload failure.
diff --git a/storage-aliyunoss/i18n/translation.go 
b/storage-aliyunoss/i18n/translation.go
index 00614c1..73a77c8 100644
--- a/storage-aliyunoss/i18n/translation.go
+++ b/storage-aliyunoss/i18n/translation.go
@@ -35,8 +35,6 @@ const (
        ConfigAccessKeySecretDescription = 
"plugin.aliyunoss_storage.backend.config.access_key_secret.description"
        ConfigVisitUrlPrefixTitle        = 
"plugin.aliyunoss_storage.backend.config.visit_url_prefix.title"
        ConfigVisitUrlPrefixDescription  = 
"plugin.aliyunoss_storage.backend.config.visit_url_prefix.description"
-       ConfigMaxFileSizeTitle           = 
"plugin.aliyunoss_storage.backend.config.max_file_size.title"
-       ConfigMaxFileSizeDescription     = 
"plugin.aliyunoss_storage.backend.config.max_file_size.description"
 
        ErrMisStorageConfig    = 
"plugin.aliyunoss_storage.backend.err.mis_storage_config"
        ErrFileNotFound        = 
"plugin.aliyunoss_storage.backend.err.file_not_found"
diff --git a/storage-aliyunoss/i18n/zh_CN.yaml 
b/storage-aliyunoss/i18n/zh_CN.yaml
index 38d3fd5..7e7b77c 100644
--- a/storage-aliyunoss/i18n/zh_CN.yaml
+++ b/storage-aliyunoss/i18n/zh_CN.yaml
@@ -54,11 +54,6 @@ plugin:
             other: 访问URL前缀
           description:
             other: 上传文件最终访问地址的前缀,以 '/' 结尾 https://example.com/xxx/
-        max_file_size:
-          title:
-            other: 最大文件大小(MB)
-          description:
-            other: 限制上传文件的最大大小,单位为MB,默认为 10MB
       err:
         mis_storage_config:
           other: 错误的存储配置导致上传失败
diff --git a/storage-aliyunoss/info.yaml b/storage-aliyunoss/info.yaml
index d93d8f3..cd95814 100644
--- a/storage-aliyunoss/info.yaml
+++ b/storage-aliyunoss/info.yaml
@@ -17,6 +17,6 @@
 
 slug_name: aliyunoss_storage
 type: storage
-version: 1.2.11
+version: 1.2.12
 author: answerdev
 link: https://github.com/apache/answer-plugins/tree/main/storage-aliyunoss
diff --git a/storage-s3/i18n/en_US.yaml b/storage-s3/i18n/en_US.yaml
index 3418140..2167506 100644
--- a/storage-s3/i18n/en_US.yaml
+++ b/storage-s3/i18n/en_US.yaml
@@ -59,11 +59,6 @@ plugin:
             other: Access URL prefix
           description:
             other: prefix of the final access address of the uploaded file, 
ending with '/' https://example.com/xxx/
-        max_file_size:
-          title:
-            other: Maximum file size(MB)
-          description:
-            other: Limit the maximum size of uploaded files, in MB, default is 
10MB
         region:
           title:
             other: Region
diff --git a/storage-s3/i18n/translation.go b/storage-s3/i18n/translation.go
index 54012fb..8b1fc9e 100644
--- a/storage-s3/i18n/translation.go
+++ b/storage-s3/i18n/translation.go
@@ -37,8 +37,6 @@ const (
        ConfigAccessTokenDescription     = 
"plugin.s3_storage.backend.config.access_token.description"
        ConfigVisitUrlPrefixTitle        = 
"plugin.s3_storage.backend.config.visit_url_prefix.title"
        ConfigVisitUrlPrefixDescription  = 
"plugin.s3_storage.backend.config.visit_url_prefix.description"
-       ConfigMaxFileSizeTitle           = 
"plugin.s3_storage.backend.config.max_file_size.title"
-       ConfigMaxFileSizeDescription     = 
"plugin.s3_storage.backend.config.max_file_size.description"
        ConfigRegionTitle                = 
"plugin.s3_storage.backend.config.region.title"
        ConfigRegionDescription          = 
"plugin.s3_storage.backend.config.region.description"
        ConfigDisableSSLTitle            = 
"plugin.s3_storage.backend.config.disable_ssl.title"
diff --git a/storage-s3/i18n/zh_CN.yaml b/storage-s3/i18n/zh_CN.yaml
index 08f58aa..af958da 100644
--- a/storage-s3/i18n/zh_CN.yaml
+++ b/storage-s3/i18n/zh_CN.yaml
@@ -59,11 +59,6 @@ plugin:
             other: 访问URL前缀
           description:
             other: 上传文件最终访问地址的前缀,以 '/' 结尾 https://example.com/xxx/
-        max_file_size:
-          title:
-            other: 文件最大大小(MB)
-          description:
-            other: 限制上传文件的最大大小,单位MB,默认为10MB
         region:
           title:
             other: 区域(Region)
diff --git a/storage-s3/info.yaml b/storage-s3/info.yaml
index 07f281b..b942533 100644
--- a/storage-s3/info.yaml
+++ b/storage-s3/info.yaml
@@ -17,6 +17,6 @@
 
 slug_name: s3_storage
 type: storage
-version: 1.2.11
+version: 1.2.12
 author: answerdev
 link: https://github.com/apache/answer-plugins/tree/main/storage-s3
diff --git a/storage-s3/s3.go b/storage-s3/s3.go
index 56f49b2..681fb8e 100644
--- a/storage-s3/s3.go
+++ b/storage-s3/s3.go
@@ -51,7 +51,6 @@ type StorageConfig struct {
        AccessKeySecret string `json:"access_key_secret"`
        AccessToken     string `json:"access_token"`
        VisitUrlPrefix  string `json:"visit_url_prefix"`
-       MaxFileSize     string `json:"max_file_size"`
        Region          string `json:"region"`
        DisableSSL      bool   `json:"disable_ssl"`
 }

Reply via email to