Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmp directory not configurable #600

Closed
nhalle opened this issue Oct 14, 2020 · 1 comment · Fixed by #781
Closed

tmp directory not configurable #600

nhalle opened this issue Oct 14, 2020 · 1 comment · Fixed by #781
Milestone

Comments

@nhalle
Copy link
Contributor

nhalle commented Oct 14, 2020

Hi,

I was trying to rewrite the tmp directory so tmp files could be sent to my app's tmp directory, but tmp files are currently configured to be saved at the root './' $pFilename = @tempnam('./', 'phppttmp') https://github.com/PHPOffice/PHPPresentation/blob/a352768c8c63722d877862e07fe8a27cf5fdffd2/src/PhpPresentation/Writer/ODPresentation.php#L8

It seems that there is existing functionality to customize the $this->diskCachingDirector as the tmp directory https://github.com/PHPOffice/PHPPresentation/blob/develop/src/PhpPresentation/Writer/ODPresentation.php#L16

Could we alternatively bring in this functionality and set $pFilename = @tempnam($this->diskCachingDirector, 'phppttmp') ?

@collectiveaccess
Copy link

We're having issues with this as well, where tmp files are being dumped into the app root and sometimes not cleaned up due to file permissions. It would be great to have the ability to route where these files land as it would make management of them so much simpler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants