Thanks to Muhamd Agoumi and T. Stoddard, I have prepared final solution for me, and I will like to share it with you.
<!DOCTYPE html>
<html lang='en' class=''>
<head><meta charset='UTF-8'>
<meta name="robots" content="noindex">
</head>
<body>
<div class="file_1">
<input name="file_1" id="file_1" class="files" title="" style="" multiple="0" type="file">
</div>
<div class="file_2">
<input name="file_2" id="file_2" class="files" title="" style="" multiple="0" type="file">
</div>
<div class="file_3">
<input name="file_3" id="file_3" class="files" title="" style="" multiple="0" type="file">
</div>
<input name="button" id="button" type="submit" value="Submit" class="" style="" onclick="checkDuplicates(event)">
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>
<script >
$('#file_1, #file_2, #file_3').change(function (e) {
if ($('#file_1').val() != '' && $('#file_1').val() == $('#file_2').val() != '' && $('#file_2').val() || $('#file_1').val() != '' && $('#file_1').val() == $('#file_3').val() != '' && $('#file_3').val() || $('#file_2').val() != '' && $('#file_2').val() == $('#file_3').val() != '' && $('#file_3').val())
{
alert("You can not send two or more same files.");
}
});
</script>
<script type="text/javascript">
checkDuplicates = function(e){
var arr = [];
var fileInputs = document.querySelectorAll(".files");
fileInputs.forEach(function(input){
if(arr.length == 0){
arr.push(input.files[0].name);
} else {
if(arr.indexOf(input.files[0].name) > -1){
e.preventDefault();
alert("You can not send two or more same files.");
} else {
arr.push(input.files[0].name);
}
}
});
};
</script>
</body>
</html>
Shortly, there is two validations: First validation will be triggered instantly during file selection, when duplicated file is selected. This validation will be a warning for user that two same files are selected. In case that user ignores the first validation, second validation will be triggered at submit action. User will not be able to submit files as long as he does not remove duplicated file(s).
Thank you all for help!