Download file from FTP and how prompt user to save/open file in ASP.NET C#
So, assuming you’re writing the FTP request’s response stream down to the ASP.NET response stream, and want to trigger the download dialog in the browser, you’ll want to set the Content-Disposition header in the response. // note: since you are writing directly to client, I removed the `file` stream // in your original code since … Read more