Forum


Replies: 1   Views: 315
Createdocxanddownload fails to load doc when path is given
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 alexandra.funke  · 16-11-2018 - 15:02

Hi,

this following issue still exists in phpDocX 8.5

https://www.phpdocx.com/en/forum/default/post/5092#post_5092

The function createDocxAndDownload creates the document at the expected location but the download searches the doc in the current directory.

This issue can easily be resolved with a quick fix in the method.

André

Posted by admin  · 16-11-2018 - 17:10

Hello,

That method was updated and all tests pass (relative and absolute paths in Windows, Linux and macOS). We move the request to the dev team, but you can also try the alternative to download the DOCX:

https://www.phpdocx.com/documentation/cookbook/download-generated-docx

As you are using a Premium package, we recommend you to use the stream mode to get the best performance.

Regards.