Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/harishtaraagriculturaltrust/comman/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <input type="button" value="Download PDF File" onclick="DownloadFile('Sample.pdf')" /> <script type="text/javascript"> function DownloadFile(fileName) { //Set the File URL. var url = "Files/" + fileName; //Create XMLHTTP Request. var req = new XMLHttpRequest(); req.open("GET", url, true); req.responseType = "blob"; req.onload = function () { //Convert the Byte Data to BLOB object. var blob = new Blob([req.response], { type: "application/octetstream" }); //Check the Browser type and download the File. var isIE = false || !!document.documentMode; if (isIE) { window.navigator.msSaveBlob(blob, fileName); } else { var url = window.URL || window.webkitURL; link = url.createObjectURL(blob); var a = document.createElement("a"); a.setAttribute("download", fileName); a.setAttribute("href", link); document.body.appendChild(a); a.click(); document.body.removeChild(a); } }; req.send(); }; </script> </body> </html>