質問編集履歴
1
誤字修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
const filepath = '../image/test.jpg';
|
13
13
|
const reFilename = 'test2.jpg';
|
14
|
-
const reFilepath = `../
|
14
|
+
const reFilepath = `../image/${reFilename}`;
|
15
15
|
fs.rename(filepath, reFilepath, (err) => {
|
16
16
|
if (err) throw err;
|
17
17
|
const uploadFile = fs.readSync(reFilepath);
|