1

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.

BalusC
  • 992,635
  • 352
  • 3,478
  • 3,452
Sandun Chathuranga
  • 2,094
  • 2
  • 10
  • 26
  • Im aslo having the same issue with yet again a java web application. Where I have to give access to download more than one file and need to check if each uploading file is as same as the downloaded once – Bhugy Mar 20 '17 at 09:32

1 Answers1

0

If you want to check that content of file is the same, just verify that checksum has not change e.g. FileUtils.checksumCRC32

iskramac
  • 816
  • 5
  • 12