Compare commits

...

1 Commits
v4.4.1 ... main

Author SHA1 Message Date
linyuchen
d7e8c82624 fix: 发送文件包含特殊字符的处理 2024-11-21 23:10:39 +08:00

View File

@ -123,8 +123,7 @@ export async function uri2local(ctx: Context, uri: string, needExt?: boolean): P
const { type } = checkUriType(uri)
if (type === FileUriType.FileURL) {
const fileUri = uri.replace(/%/g, '%25').replace(/#/g, '%23')
const filePath = fileURLToPath(fileUri)
const filePath = fileURLToPath(uri)
const fileName = path.basename(filePath)
// console.log('fileURLToPath', filePath)
// console.log('fileName', fileName)