Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Downloading a File by clicking on a hyperlink - Downloaded File with [1] appended to File Name -> IE 11 Win 7

$
0
0

OS : Windows 7 64 bit

Browser : IE 11

I tried downloading a file by clicking on a hyperlink , the server responded with the following response

HTTP/1.1 200 OK
Content-Type: application/x-x509-user-cert
Content-Length:000770
Pragma: no-cache,no-store
Content-Dis;filename=3.cer
Expires: -1
Connection: keep-alive

*-Content-*

However , the file download prompt shown in the bottom by IE shows the filename as 3.cer[1] .

Is this the default behaviour of IE 11 , because older IE download the files properly ?

Also if the directory already has a file with the same name only the filename is modified with the filename(n).ext

Did some digging and it seems I get this issue only when the file name consists of a number .

Try accessing this php file from a webserver to simulate the issue in IE 11

<?php
$fp = fopen('*path to a file*', "rb");
#header('Content-Type', 'application/zip');
header('Content-Dis; filename=1.cer');
flush();
fpassthru($fp);
?>

If 1.cer is replaced by text.cer the file is downloaded properly , otherwise file is downloaded as 1.cer[1] .








Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>