I'm looking for the latest (circa 2021), recommended, standard way to store a file locally in the browser for a particular user and domain. By "Standard" I mean some API that is supported by at least Chrome and Firefox now, and is either part of the W3C or Living Standard, or at least has some good indications that it will not be deprecated in the next 5 years.
There seem to be multiple "old ways" that seem to fit what I'm looking for:
There are the more standard storage methods, but neither is focused on saving files:
Am I missing an option? Is there a more standard web file API for the near future (2021 and beyond)? Should we just be using IndexedDB? (Bonus points if the file API also works in Cordova, since the popular file plugin uses a weird mash up of the deprecated File API and LocalFileSystem.)