Specify the default download folder - perhaps using JavaScript?

We are currently developing a web application that will require downloading files through a browser. It would be ideal if these files were in a certain place in the file system.

Is there a way to make the save file and the file open the default dialog for a specific folder, for example %USER%\Downloads\MyApp\?

I do not want this to be a forced thing, but if we can put it by default in the right place, this will at least be a good invitation for the user and provide a better experience with other parts of the expression.

I am sure that this can be done using a Java control, but it would be nice to do this using simple JavaScript or something else.

+3
source share
1 answer

No, I'm sure this is not possible using JavaScript in any browser.

The only thing you can offer is a file name.

+4
source

Source: https://habr.com/ru/post/1780508/


All Articles