简体   繁体   中英

Verify if the uploading file is as same as the downloaded file

In java is there a way to verify if the user uploading file is as same as the one he just downloaded (other than by using the file name).

For an example, if the user is given a certain template to download and fill, and then upload the same, How can we verify if he is uploading the same file as he downloaded.

如果要检查文件内容是否相同,只需验证校验和是否未更改,例如FileUtils.checksumCRC32

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM