Post by fisher05 » Thu Feb 19, 2015 3:27 am

Trying to download the template to make an adjustment for an order but when i download the .xls template I get errors in the spreadsheet like:

Warning filesize(): stat failed
Cannot Modify Header Information - Headers already sent.
failed to open stream:No such file or directory

http://gyazo.com/9641b82375ec95234e3691cc1d90e413

Code: Select all

header('Content-Type: application/octet-stream');
        header('Content-Description: File Transfer');
        header('Content-Disposition: attachment; filename=AmazonOrderAdjustmentTemplate.xls');
        header('Content-Transfer-Encoding: binary');
        header('Expires: 0');
        header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
        header('Pragma: public');
        header('Content-Length: ' . filesize($file));
it seems to be having an issue with the ^last line from this snippet of code^

any ideas?

Fisher05


User avatar
New member

Posts

Joined
Wed May 22, 2013 1:30 am
Who is online

Users browsing this forum: No registered users and 1 guest