shixi
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
apps/test-server/service/FileService.ts
|
|
|
@ -5,7 +5,7 @@ const uploadUrl = 'http://localhost:3300/static/upload'; |
|
|
|
const filePath = path.join(__dirname, '../static/upload/'); |
|
|
|
|
|
|
|
fs.ensureDir(filePath); |
|
|
|
export default class UserService { |
|
|
|
export default class FileService { |
|
|
|
async upload(ctx, files, isMultiple) { |
|
|
|
let fileReader, fileResource, writeStream; |
|
|
|
|
|
|
|
|