Forum


Replies: 3   Views: 2108
Are we able to specify a custom file path to store generated files
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 dawenloni  · 11-10-2019 - 23:25

in the trial version, docx files are created (even temporary) under the root directory of the application, which is not secure. is it any option to specify a custom file path to locate generated files? and how?

Posted by dawenloni  · 14-10-2019 - 21:07

Thanks for the reply. I am able to specify a custom path, however, it works well in my localhost, but not in our dev server, those we already have 777 permission for the specified directory. we still get this:


Warning: filesize(): stat failed for /www/hosts/rebl.dev.ini.usc.edu/docs/application/controllers/docs/raf_Paul _Thompson_20191014131908.docx in /www/hosts/rebl.dev.ini.usc.edu/docs/application/controllers/report.php on line 446

Warning: readfile(/www/hosts/rebl.dev.ini.usc.edu/docs/application/controllers/docs/raf_Paul _Thompson_20191014131908.docx): failed to open stream: No such file or directory in /www/hosts/rebl.dev.ini.usc.edu/docs/application/controllers/report.php on line 448

 

We are using the trial version.