Forum


Replies: 2   Views: 135
Save the file into a s3 bucket

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