Unverified Commit e2987c06 authored by Joe Hoyle's avatar Joe Hoyle
Browse files

Fix copying large files causes memory limit overflow

I'm not totally sure how this was ever committed. It was never in the original AWS SDK where the streamwrapper came from, and tthe blame shows my initial commit. I think it must have been added by me when doing the refactor as an oversight.
parent 84910f4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -185,7 +185,7 @@ class S3_Uploads_Stream_Wrapper
			$this->body->seek(0);
		}
		$params = $this->getOptions(true);
		$params['Body'] = (string) $this->body;
		$params['Body'] = $this->body;

		// Attempt to guess the ContentType of the upload based on the
		// file extension of the key. Added by Joe Hoyle