Current location - Quotes Website - Signature design - The files (pictures) of WeChat applet are encrypted by MD5 (1).
The files (pictures) of WeChat applet are encrypted by MD5 (1).
Problem: The uploaded pictures contain a lot of duplicates.

Solution. Get the MD5 value of the picture and send it to the background for comparison.

I. Introduction to spark-md5.js

var sMD5 = require('../../../utils/spark-md5.js ')

Second, choose a picture to get a file.

Third, spark-md5.js

Reference: /aaron 9 185/ Articles/Details /848550 14