parent
76ffd8fdf1
commit
b7944690d1
|
|
@ -5,7 +5,7 @@ const uploadUrl = 'http://localhost:3300/static/upload';
|
||||||
const filePath = path.join(__dirname, '../static/upload/');
|
const filePath = path.join(__dirname, '../static/upload/');
|
||||||
|
|
||||||
fs.ensureDir(filePath);
|
fs.ensureDir(filePath);
|
||||||
export default class UserService {
|
export default class FileService {
|
||||||
async upload(ctx, files, isMultiple) {
|
async upload(ctx, files, isMultiple) {
|
||||||
let fileReader, fileResource, writeStream;
|
let fileReader, fileResource, writeStream;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue