Forum


Replies: 5   Views: 373
How to use google cloud storage to save the document instead of saving it locally
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 jonjie  · 20-12-2023 - 06:36

How to use Google Cloud Storage to save the document instead of saving it locally?

I currently have this code below where I am saving it locally, but I want to directly save it in GCS instead.

$newDocx->searchAndReplace($docxFromPath, public_path() . '/storage/agreements/docx' . $fileName, 'Company Name', 'Apple', $options);