Many modern web applications and PWAs allow users select a file from their hard drive, and then save changes back to that file directly.
An old-school approach was to read the file, make the required changes on the server side, and then send the user to a page where they can download the new file. However, this new generation of web apps is able to save the changes directly (no downloads required), and without any server involvement.
How is this possible, and how can I implement something similar?