简体   繁体   English

验证上载文件是否与下载的文件相同

[英]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). 在java中有一种方法可以验证用户上传文件是否与他刚下载的文件相同(除了使用文件名)。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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