'How to get a users download folder in Unity WebGL?

I have been working on a project that generates synthetic images from a user provided backgrounds uploaded to the program, and then exporting an image using the new data. I am using a webGL supported file browser to allow users to select the backgrounds, and then select the folders in which to export to, however I have been informed the project needs to be automated.

How can I get a path to the users downloads folder from a webGL build of Unity? Hard coding is not an issue since we will have control of the computers that provide or receive the images.

Do I need to host locally? I was originally using Itch.io as a host.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source