Closed don-odyssey closed 1 month ago
If the file is encrypted (probably because it's password-protected), we can't open it. If that's not the explanation, I'd need you to upload it to determine the source of the problem.
Closing. No sample file, no reply in over 4 months.
This is:
What is the expected behavior?
File opens for processing
What is the current behavior?
File fails to open Error: atal error: Uncaught PhpOffice\PhpSpreadsheet\Reader\Exception: Unable to identify a reader for this file in /home/httpd/www/odyssey-new/web/php/phplib/ext/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/IOFactory.php:172
What are the steps to reproduce?
$icargoInputFile = target file $inputFileType = IOFactory::identify($icargoInputFile); The above lines causes error
Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:
If this is an issue with reading a specific spreadsheet file, then it may be appropriate to provide a sample file that demonstrates the problem; but please keep it as small as possible, and sanitize any confidential information before uploading.
What features do you think are causing the issue
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
I only use XLSX format
Which versions of PhpSpreadsheet and PHP are affected?
PHP 7.4. I don't know how to find the version of PhpSpreadsheet