diff --git a/public/locales/en-US/dashboard.json b/public/locales/en-US/dashboard.json index 1a9e7ef..ffa3300 100644 --- a/public/locales/en-US/dashboard.json +++ b/public/locales/en-US/dashboard.json @@ -381,6 +381,7 @@ "nanoTimestamp": "Nano timestamp", "uid": "User ID", "originalFileName": "Original file name", + "originFileNameNoext": "Original file name without ext", "extension": "File extension name", "uuidV4": "UUID V4", "date": "Date", diff --git a/public/locales/zh-CN/dashboard.json b/public/locales/zh-CN/dashboard.json index 3ccf7c6..967817c 100644 --- a/public/locales/zh-CN/dashboard.json +++ b/public/locales/zh-CN/dashboard.json @@ -381,6 +381,7 @@ "nanoTimestamp": "纳秒级时间戳", "uid": "用户 ID", "originalFileName": "原始文件名", + "originFileNameNoext": "无扩展名的原始文件名", "extension": "文件扩展名", "uuidV4": "UUID V4", "date": "日期", diff --git a/public/locales/zh-TW/dashboard.json b/public/locales/zh-TW/dashboard.json index 504fbc0..a9b1d1f 100644 --- a/public/locales/zh-TW/dashboard.json +++ b/public/locales/zh-TW/dashboard.json @@ -381,6 +381,7 @@ "nanoTimestamp": "奈秒級時間戳", "uid": "用戶 ID", "originalFileName": "原始檔案名", + "originFileNameNoext": "原始檔案名無副檔名", "extension": "文件副檔名", "uuidV4": "UUID V4", "date": "日期", @@ -819,4 +820,4 @@ "lastProgress": "最後進度", "errorMsg": "錯誤訊息" } -} \ No newline at end of file +} diff --git a/src/component/Admin/Dialogs/MagicVar.js b/src/component/Admin/Dialogs/MagicVar.js index 11130b5..6e90034 100644 --- a/src/component/Admin/Dialogs/MagicVar.js +++ b/src/component/Admin/Dialogs/MagicVar.js @@ -49,6 +49,12 @@ const magicVars = [ example: "MyPico.mp4", fileOnly: true, }, + { + value: "{originname_without_ext}", + des: "originFileNameNoext", + example: "MyPico", + fileOnly: true, + }, { value: "{ext}", des: "extension",