2

I am using FileSaver.js to save files from Angular.

However, I would like to allow the user to choose the directory.

How can I do this?

1 Answer 1

1

I don't believe this is possible. It is the browser's choice whether to present the user with a "Save As.." dialog box, or whether to just automatically download to the "Downloads" folder.

For example, here is the setting for Chrome that controls this behaviour:

Google Chrome setting controlling file download location

Sign up to request clarification or add additional context in comments.

2 Comments

You gave me the answer that I needed. Thank you a lot
@JohnWillmerCubillosVega-C No problem! If this answered your question, don't forget to upvote & mark the answer as accepted

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.