我在加载文件以写入 PHPExcel 时收到此错误, 文件大小为615KB
( ! ) Fatal error: Uncaught exception 'PHPExcel_Writer_Exception' with message 'File zip://C:\wamp\www\iON\Files\MISReport_PUN 01 HODEV PANC W MH PUN.xlsx#xl/media/image1.png does not exist' in C:\wamp\www\iON\Excel\PHPExcel\Writer\Excel2007\ContentTypes.php on line 242
( ! ) PHPExcel_Writer_Exception: File zip://C:\wamp\www\iON\Files\MISReport_PUN 01 HODEV PANC W MH PUN.xlsx#xl/media/image1.png does not exist in C:\wamp\www\iON\Excel\PHPExcel\Writer\Excel2007\ContentTypes.php on line 242
可能的原因是什么?
答案 0 :(得分:1)
问题是该文件已被删除
if (file_exists($pFilename)) {
unlink($pFilename);
}