Javascript check if two File objects point to the same file

1.7k Views Asked by At

I have two arrays of File (File web API) objects that I want to compare, but I can't figure out which properties I could use to do it.

The arrays can become pretty large so I don't want to have to compare the file content. Actually even having to read the file would be a huge constraint... What else would be a good way to check if two File objects reference the same file? Note that they can be in different paths, so the filenames might not be unique...

0

There are 0 best solutions below