There's no way , the Save As dialog box is a user-choice browser option, you can not force it to appear via scripts, > server-side and neither client-side scripts (like JavaScript).
There are browsers that download directly, for example mobiles there are browsers that show such a dialog box to save by default, but the only thing you can do is to provide a link with an information saying:
Right click and select "Save as ..."
This is how the dialog box appears without configuring the browser
The user of a desktop browser decides if he wants to download directly (usually to Downloads
folder), or if he is prompted for the dialog where he wants to save, for example, in Chrome if you navigate by typing in the address bar chrome://settings/?search=downloads
, you'll notice this:
See that the option is disabled, if you enable this option, any download will have the dialog box asking if you want to Open or Save / Save you do not need to right-click / mouse, if it is disabled it will save directly to the default Downloads folder of your system (usually, but you can change the folder location).