Forum


Replies: 2   Views: 549
Save the file into a s3 bucket
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 Bouillou  · 15-03-2023 - 14:48

Hello,

I have to save generated Word files to a S3 bucket instead of local storage. I am considering using the storage abstraction library https://flysystem.thephpleague.com

Is there any possibility to manage the way to save a file or the only solution is to save the file locally ?

Best regards

Posted by admin  · 15-03-2023 - 16:44

Hello,

Basic and Advanced licenses only allow saving DOCX documents to the file system. Premium licenses also include stream features: https://www.phpdocx.com/api-documentation/performance/zip-stream-docx-with-PHP

Although you can save the DOCX in the fs and then move it to S3, using the stream mode available in Premiun licenses is the recommended approach to accomplish the requested task.

Regards.

Posted by Bouillou  · 16-03-2023 - 16:31

Ok, thanks for the answer