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
@@ -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' => '权限',