I am creating an attachment on the server.
Now the bonus would be to automatically download it on the user's local storage (e.g. Downloads folder) when a certain transition is triggered.
Is there any way to do this. The browser only knows HTML and JavaScript so it only could be possible to use some Web technology.