You can do this with HTTP Response Headers, if your server side sets that header 'Content-Disposition': f'attachment; filename="{file_name}"' (this is in Python)