OSDN Git Service

[BUG FIX] API endpoint (post) /api/v1/fileUpload v0.3.0p0021
authorhimetani_cafe <fumifumi@yasunaga-lab.bio.kyutech.ac.jp>
Tue, 26 Jan 2016 12:21:41 +0000 (21:21 +0900)
committerhimetani_cafe <fumifumi@yasunaga-lab.bio.kyutech.ac.jp>
Tue, 26 Jan 2016 12:21:41 +0000 (21:21 +0900)
server/api/v1/fileUpload/index.js

index 344fc76..ba6d9dc 100644 (file)
@@ -70,9 +70,9 @@ router.post('/', function(req, res) {
                 filesInfo[i].status = 'success';
                 filesInfo[i].fileId = fileId;
                 fs.renameSync(filesInfo[i].tmpPath, workspace + fileId);
-                delete tmpPaths[i];
+                delete filesInfo[i].tmpPath;
             })
-            res.send(responsesInfo);
+            res.send(filesInfo);
         });
     });