There are a lot of web apps that are being developed these days. Some are called PWAs or progressive web apps. They have the ability to be installed on the users pc or device although they are mostly just a application wrapping a website. My web app needs to save multiple files to a users PC all at one time. My web app is code specific so it writes to the local project source code. It works in the desktop application but now it has to be ported to the web.
Currently, the user can download a single file by clicking a button. This prompts the user to save a single file to a specific directory.
Is there a way for a web app to write files to a local directory? I would need the user to select the directory. It would need to write to that directory and one directory in / down.
Browsers have a permissions API now so that the browser and websites cannot do certain actions without the users permission. That’s ok that this feature needs permissions.
If this isn’t possible then what options do I have to save multiple files to a users pc with their permission? I don’t want users to have to install anything else. If all else fails then posting to localhost server maybe be possible.