Problem definition
I am trying to open a website by its url providing an image stored on the user's computer as an argument using windows batch. The path of the image on the user's computer is an argument of the batch file.
my-batch-file.bat C:\path\to\image1 C:\path\to\image2
would open www.example.com making these two images available to the JS script.
Concrete example:
I own the website www.image-edition-example.com where people can open images to edit them.
I want them to be able to load the images they want to edit to the website using the batch script. The images are stored on the user's computer at path C:\path\to\image1
and C:\path\to\image2
. I (ideally) don't want to involve any back-end and just want to load the image in the front-end.
What I've tried so far
From what I understand, it is not possible to access user's filesystem from JS in the browser (sounds a fair security choice).
I could also open the image in the bash (in base64 for instance, I have no idea how it could be done) and send it with a cURL request.
In this case, I can either send it via POST, and in this case I would have to access to the data on server side, but my website is a static website built with Webpack so I don't know how I can access it and send it back to the front.
The other option would be using GET, which means putting base64 images into the url, which makes the URL too long !
Does anyone know how I can get around this issue ?