Skip to content

sys_get_temp_dir() not writeable on some shared hosts #310

@iflow

Description

@iflow

On some shared hosts / webspaces the sys_get_temp_dir() is not accessable / writeable.
Therefore a new Template can not be generated. The following Exception is thrown:
"'Could not create temporary file with unique name in the default temporary directory.'"

$this->tempFileName = tempnam(sys_get_temp_dir(), '');

I think the path, where the temporary files are stored should be configurable. So you can easily create a temp folder on your webspace and let PHPWord store the temp files there.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions