Set file name in response for download
Javascript based solutions such as Google Analytics are very popular, but will not show file downloads by default. This is because downloading a file does not cause any Javascript to be executed.
Subscribe Blog. Follow HttpWatch. Got Something to Say? Cancel reply Your email address will not be published. We will never ask you to call or text a phone number or share personal information. This thread was archived. Please ask a new question if you need help. When I download a file it shows up in my download folder as "document. If I have more than one, the is a number after document. I then have to open each one to see what it is. Windows 10 bit.
If you are using ASP. Peter Peter 8 8 silver badges 9 9 bronze badges. This should do: Response. Note: The last line is mandatory. OK ; response. Considering the previous answers, it is necessary to be careful with globalized characters. AddHeader "Content-Disposition", cd. ToString ; The System. ContentDisposition class takes care of quotes.
Asereware Asereware 6 6 silver badges 6 6 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook.
Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Who is building clouds for the independent developer? Exploding turkeys and how not to thaw your frozen bird: Top turkey questions Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer.
Visit chat. Linked 1. Related Hot Network Questions. Question feed.
0コメント