diff options
author | LarsVomMars | 2021-01-29 11:19:49 +0100 |
---|---|---|
committer | LarsVomMars | 2021-01-29 11:19:49 +0100 |
commit | dcf2ba4afc2eec720d6ae6df4be1b290cc91563c (patch) | |
tree | 581e4fd75c74542470710a90d8aa704b0cb27ee8 | |
parent | 43bee3b95a6a8f06b53b45c908e3fd6e69f17089 (diff) |
Overwrite files
-rw-r--r-- | profile/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profile/index.js b/profile/index.js index be0c232..41de0d5 100644 --- a/profile/index.js +++ b/profile/index.js @@ -75,7 +75,7 @@ async function answerImage(req, res, qs) { for (const fid in req.files) { if (!req.files.hasOwnProperty(fid)) continue; const image = req.files[fid]; - const name = `${req.session.uid}_${new Date().getTime()}.jpg`; + const name = `child_${req.session.uid}.jpg`; try { await image.mv(`${__dirname}/public/uploads/${name}`); await db.query(qs, [name, fid, req.session.uid]); |