-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bug]: 申请单附件类型字段上传文件生成的key路径值异常 #6610
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/* | ||
* @Author: [email protected] | ||
* @Date: 2022-06-09 09:36:43 | ||
* @LastEditors: liaodaxue | ||
* @LastEditTime: 2023-06-16 15:56:45 | ||
* @LastEditors: 孙浩林 [email protected] | ||
* @LastEditTime: 2024-04-19 14:47:44 | ||
* @Description: 文件类,处理文件保存 | ||
*/ | ||
'use strict'; | ||
|
@@ -148,8 +148,8 @@ class File { | |
const absolutePath = path.resolve(pathname); | ||
// 如果文件夹不存在,则创建文件夹 | ||
mkdirp.sync(absolutePath); | ||
|
||
return customPathPrefix + '/' + fsCollectionName + '-' + _id + '-' + final_filename; | ||
const fullpath = path.join(customPathPrefix, fsCollectionName + '-' + _id + '-' + final_filename) | ||
return fullpath; | ||
} | ||
else { | ||
return fsCollectionName + '/' + fsCollectionName + '-' + _id + '-' + final_filename; | ||
|