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 ]); }