Angularjs Laravel-Excel file download -


hi facing file download problem laravel excel , angularjs. file store working. getting response headers this. supposed download file

cache-control:cache, must-revalidate
connection:keep-alive
content-disposition:attachment; filename="regular_computer science 2017 sem 1.xls"
content-length:5632
content-type:application/vnd.ms-excel; charset=utf-8
date:fri, 07 apr 2017 04:02:31 gmt
expires:mon, 26 jul 1997 05:00:00 gmt
keep-alive:timeout=5, max=100
last-modified:fri, 07 apr 2017 04:02:31
pragma:public
server:apache/2.4.23 (win64) php/5.6.25
x-powered-by:php/5.6.25

my js

getreport : function(report_data) {   return $http({         method: 'post',         url: '../get_report',         headers: { 'content-type' : 'application/x-www-form-urlencoded'},         data: $.param(report_data)     }); }  report.getreport($scope.examreportdata)          .then(function(data, status, headers, config) {             console.log(data.data);             }); 

thank , suggestions.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -