kopia lustrzana https://github.com/OpenDroneMap/NodeODM
Remove file sanitization
rodzic
006cb962ec
commit
6459f10e45
|
@ -81,7 +81,7 @@ const upload = multer({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
filename: (req, file, cb) => {
|
filename: (req, file, cb) => {
|
||||||
let filename = utils.sanitize(file.originalname);
|
let filename = file.originalname;
|
||||||
if (filename === "body.json") filename = "_body.json";
|
if (filename === "body.json") filename = "_body.json";
|
||||||
|
|
||||||
let dstPath = path.join("tmp", req.id);
|
let dstPath = path.join("tmp", req.id);
|
||||||
|
|
Ładowanie…
Reference in New Issue