I'm working on an offline application in Javascript that will convert a <div>
to <canvas>
and save it as an image to a location in local disk.
I'd prefer if the saving has no dialog and to save to the same location (set in configuration) every time.
I'm still going through the documentation on Cache API
but there doesn't seem to be any answers in regards to setting absolute paths. All the examples show relative paths. I'd like to set it to something like C:/Users/Work/Presentation/file1.jpg
, and have it overwrite itself every save.
Is this possible with Cache API
or is there another offline storage API (localstorage
won't work because it only stores k-v pairs) that would better suit this use case? Is there a library that already exists to make this implementation easier?