Not fully, as in, you could maybe check that the file name isn’t the same, but not anything else.
You could add some additional custom JS validation using the HTML5 File API and do some checks on file name, size and type and if they all match, show a warning to the user asking them if they are uploading the same file, because they might not always be.