Forum


Replies: 1   Views: 2774
Createdocxanddownload may fail on path
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by petitiaux  · 15-11-2016 - 09:21

In PHPocx 5.0 -> 6.5 the function createDocxAndDownload from Crate/CreateDocx.inc changed in that it is now possible to have .docx trailing the name.

In doing so the filesize and readfile functions now take the name of the file minus the trailing .docx as name instead of the whole path.

I would suggest that the function to remove the trailing .docx also includes the full path and use that in the functions above.

This way you still have controle over the temp save path of the file to generate.