Closed jonket55 closed 4 years ago
I can also confirm that. The PHAR file opens in the browser instead of downloading.
We are sending the file as application/octet-stream
, which should trigger the download dialog.
Maybe a bug in IE/Edge?
Zusätzlich muss vermutlich noch folgender response header mitgeschickt werden:
Content-Disposition: attachment; filename="contao-manager.phar"
Nur so teilt man dem Browser mit, dass die Datei immer zum runterladen ist. Andernfalls entscheidet es der Browser selbst - und bei octet-stream entscheidet der IE wohl anders als die anderen Browser.
entscheidet der IE wohl anders als die anderen Browser
Who's surprised? 😄
Who's surprised? 😄
It's not surprising, but in this case I'd argue that's it's not not surprising, because IE is horrible - but rather because the appropriate response header is missing ;). Without the header, the result is simply undefined (i.e. up to the client).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Download link on download page does not work in IE 11 or Edge.