I am trying to add a resume upload capability to my system, in which I compute the SHA256 hash for the file on client-side js, and then compare that hash to server-side DB if this file was already uploaded ( or save the hash as it is if it is a new file ).
But some of the files can exceed 10s of GBs, and calculating the whole file hash for which will be very time-consuming. So I am calculating the hash for only the first 500MB of the file.
Is there any significant chance of collision here?