如何写functionToGenerateMD5hash这段代码?我已经有了fileVideo,我需要通过单击按钮将此文件的md5哈希发送到服务器.
$("#someButton").click(function() {
var fr = new FileReader();
fr.onload = function(e) {
string md5 = functionToGenerateMD5hash(e.target.result);
// send md5 here
};
fr.readAsArrayBuffer(fileVideo);
Run Code Online (Sandbox Code Playgroud)