|
@ -147,7 +147,7 @@ app.post('/image', uploadMulter.single('image'), async (req, res) => { |
|
|
hashSum.update(data); |
|
|
hashSum.update(data); |
|
|
const hashHex = hashSum.digest('hex'); |
|
|
const hashHex = hashSum.digest('hex'); |
|
|
|
|
|
|
|
|
const fileName = hashHex; |
|
|
const fileName = hashHex + path.extname(reqFile.originalname); |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
|
|
|
|
|
|