From 9c78c90d76159423315ed46a5663c9bae2c937a1 Mon Sep 17 00:00:00 2001 From: Maxime Renou Date: Thu, 13 Jun 2019 19:01:39 +0200 Subject: [PATCH] Fix memory allocation --- StorageBundle/Adaptors/S3Storage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/StorageBundle/Adaptors/S3Storage.php b/StorageBundle/Adaptors/S3Storage.php index dba8969..b514b64 100644 --- a/StorageBundle/Adaptors/S3Storage.php +++ b/StorageBundle/Adaptors/S3Storage.php @@ -104,7 +104,8 @@ class S3Storage implements StorageAdaptor 'Bucket' => $this->bucket, 'Path' => $this->getPrefix().$target_path, 'Key' => $this->getPrefix().$target_path, - 'Body' => file_get_contents($source_path), + 'SourceFile' => $source_path, // Fix memory allocation + //'Body' => file_get_contents($source_path), 'ACL' => $permissions ]); }