<input id='f' name='f' multiple />
I am allowing the user to select multiple files (from different folders) for upload. I build the list of selected files as described here. Basically the list of selected files is maintained outside of the INPUT control and stuffed back into f.files at submit time.
The list of selected files is built from the File object in the array f.files each time the user selects a file(s).
So far, this works well, except that I am unable to detect duplicate files selected. f.files contains only the file name and not the full path.
I applied URL.createObjectURL on the File object but each time it is a different url, even with the same file.
(In Chrome, the upload control will not fire the change event if the same file was selected in succession. But this isn't sufficient for me, as the user can select file A, then file B, and then file A again.)
How do I identify duplicate files from the File object?