Fix memory allocation

This commit is contained in:
Maxime Renou 2019-06-13 19:01:39 +02:00
parent 7a18467734
commit 9c78c90d76
1 changed files with 2 additions and 1 deletions

View File

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