I have a temporary File API store (HTML5) but I can’t check whether a file exists or not. Is there a simple way to check it? Do I have to actually try and read the file to find out?
A search around has yielded me nothing concrete
A synchronous check would be nice is this possible?
You have to read the file. The following example is based on this demo from HTML5Rocks (it catches all errors, you might want to filter the different error types):
The synchronous method is only available to Web Workers, due to their blocking nature. The error handling is slightly different.