src/Gaufrette/Adapter/AwsS3.php 1 location
|
@@ 132-134 (lines=3) @@
|
| 129 |
|
* If the ContentType was not already set in the metadata, then we autodetect |
| 130 |
|
* it to prevent everything being served up as binary/octet-stream. |
| 131 |
|
*/ |
| 132 |
|
if (!isset($options['ContentType']) && $this->detectContentType) { |
| 133 |
|
$options['ContentType'] = $this->guessContentType($content); |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
try { |
| 137 |
|
$this->service->putObject($options); |
src/Gaufrette/Adapter/AsyncAwsS3.php 1 location
|
@@ 135-137 (lines=3) @@
|
| 132 |
|
* If the ContentType was not already set in the metadata, then we autodetect |
| 133 |
|
* it to prevent everything being served up as binary/octet-stream. |
| 134 |
|
*/ |
| 135 |
|
if (!isset($options['ContentType']) && $this->detectContentType) { |
| 136 |
|
$options['ContentType'] = $this->guessContentType($content); |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
try { |
| 140 |
|
$this->service->upload($this->bucket, $this->computePath($key), $content, $options); |