feat: add CloudFlare ImgBed attachment driver

This commit is contained in:
fei152
2026-07-23 04:15:04 +08:00
parent 78f00fb474
commit 5b83fa1722
8 changed files with 327 additions and 3 deletions
+9
View File
@@ -185,6 +185,15 @@ return [
'upload_api_endpoint' => 'Upload interface address',
'base_url' => 'Image URL prefix',
'upload_token' => 'Upload token',
'upload_channel' => 'Upload channel',
'upload_channel_default' => 'Use the CloudFlare ImgBed default',
'channel_name' => 'Channel name',
'channel_name_help' => 'Optional. Selects a named channel when the same storage type has multiple channels.',
'upload_folder' => 'Upload folder',
'upload_folder_help' => 'Optional relative path, for example nexusphp/images.',
'cloudflare_imgbed_endpoint_help' => 'Enter the complete /upload endpoint, for example https://img.example.com/upload.',
'cloudflare_imgbed_token_help' => 'Use a CloudFlare ImgBed API Token with upload permission.',
'cloudflare_imgbed_base_url_help' => 'Optional. Image URL prefix used to store relative paths. The upload endpoint origin is used when empty.',
],
'permission' => [
'tab_header' => 'Permission',
+9
View File
@@ -225,6 +225,15 @@ return [
'upload_api_endpoint' => '上传接口地址',
'base_url' => '图片 URL 前缀',
'upload_token' => '上传令牌',
'upload_channel' => '上传渠道',
'upload_channel_default' => '使用 CloudFlare ImgBed 默认渠道',
'channel_name' => '渠道名称',
'channel_name_help' => '可选。同一种存储配置了多个渠道时,用它指定渠道名称。',
'upload_folder' => '上传目录',
'upload_folder_help' => '可选的相对目录,例如 nexusphp/images。',
'cloudflare_imgbed_endpoint_help' => '填写完整的 /upload 接口,例如 https://img.example.com/upload。',
'cloudflare_imgbed_token_help' => '使用具有 upload 权限的 CloudFlare ImgBed API Token。',
'cloudflare_imgbed_base_url_help' => '可选,用于把图片地址保存为相对路径;留空时从上传接口地址自动获取。',
],
'permission' => [
'tab_header' => '权限',