You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i try to load .docx file with image i get an exception PHP Fatal error: Uncaught exception 'PhpOffice\\PhpWord\\Exception\\CreateTemporaryFileException' with message 'Could not create a temporary file with unique name in the specified directory.' in .../vendor/phpoffice/phpword/src/PhpWord/Element/Image.php:485\nStack trace:\n#0 .../vendor/phpoffice/phpword/src/PhpWord/Element/Image.php(411): PhpOffice\\PhpWord\\Element\\Image->getArchiveImageSize('zip:https://testII.do...')\n#1 .../vendor/phpoffice/phpword/src/PhpWord/Element/Image.php(149): PhpOffice\\PhpWord\\Element\\Image->checkImage()\n#2 [internal function]: PhpOffice\\PhpWord\\Element\\Image->__construct('zip:https://testII.do...', NULL, false, NULL)\n#3 .../vendor/phpoffice/phpword/src/PhpWord/Element/AbstractContainer.php(145): ReflectionClass->newInstanceArgs(Array)\n#4 [internal function]: PhpOffice\\PhpWord\\Element\\AbstractContainer->addElement('Image', 'zip: in .../vendor/phpoffice/phpword/src/PhpWord/Element/Image.php on line 485
In the same time if i delete all images from .docx file and try to load same .docx without images - all works perfectly.
Describe the Bug
When i try to load .docx file with image i get an exception
PHP Fatal error: Uncaught exception 'PhpOffice\\PhpWord\\Exception\\CreateTemporaryFileException' with message 'Could not create a temporary file with unique name in the specified directory.' in .../vendor/phpoffice/phpword/src/PhpWord/Element/Image.php:485\nStack trace:\n#0 .../vendor/phpoffice/phpword/src/PhpWord/Element/Image.php(411): PhpOffice\\PhpWord\\Element\\Image->getArchiveImageSize('zip:https://testII.do...')\n#1 .../vendor/phpoffice/phpword/src/PhpWord/Element/Image.php(149): PhpOffice\\PhpWord\\Element\\Image->checkImage()\n#2 [internal function]: PhpOffice\\PhpWord\\Element\\Image->__construct('zip:https://testII.do...', NULL, false, NULL)\n#3 .../vendor/phpoffice/phpword/src/PhpWord/Element/AbstractContainer.php(145): ReflectionClass->newInstanceArgs(Array)\n#4 [internal function]: PhpOffice\\PhpWord\\Element\\AbstractContainer->addElement('Image', 'zip: in .../vendor/phpoffice/phpword/src/PhpWord/Element/Image.php on line 485
In the same time if i delete all images from .docx file and try to load same .docx without images - all works perfectly.
Steps to Reproduce
Where 'test.docx' - file with images.
Expected Behavior
The possibility to extract text from file (Don't care about images).
Current Behavior
Unable to open file and get error "Could not create a temporary file with unique name in the specified directory."
Context
The text was updated successfully, but these errors were encountered: