You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

ERROR_MESSAGE_MAIN ERROR_MESSAGE_REASON on iPad and iPhone Safari

My website has a functionality of downloading excel sheet. I'm using PHPExcel library with Codeigniter to create the .xlsx sheet. It works fine almost everywhere but in iPad/ iPhone Safari. The following error covers the screen.

User uploaded file

My code to download the file is following:

ob_end_clean();
$filename='attendance_list.xlsx';
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment;filename="'.$filename.'"'); 
header('Cache-Control: max-age=0');
$objWriter = PHPExcel_IOFactory::createWriter($this->excel, 'Excel2007'); 
$objWriter->save('php://output');

And i am calling the php function with this code via jquery and AJAX. Please provide me with the answers.

iPad Air Wi-Fi, iOS 10.2.1, iPhone and iPad both

Posted on Mar 29, 2017 2:41 AM

Reply
1 reply

ERROR_MESSAGE_MAIN ERROR_MESSAGE_REASON on iPad and iPhone Safari

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.