@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | |
77 | 77 | $this->deleteTempFile($tmpfname); |
78 | 78 | |
79 | - $this->setContentType($path, $contents); |
|
79 | + $this->setContentType($path, $contents); |
|
80 | 80 | } catch (RuntimeException $exception) { |
81 | 81 | $this->deleteTempFile($tmpfname); |
82 | 82 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | Cosapi::upload($this->getBucket(), $uri, $path) |
107 | 107 | ); |
108 | 108 | |
109 | - $this->setContentType($path, stream_get_contents($resource)); |
|
109 | + $this->setContentType($path, stream_get_contents($resource)); |
|
110 | 110 | } catch (RuntimeException $exception) { |
111 | 111 | if ($exception->getCode() == -4018) { |
112 | 112 | return $this->getMetadata($path); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | |
137 | 137 | $this->deleteTempFile($tmpfname); |
138 | 138 | |
139 | - $this->setContentType($path, $contents); |
|
139 | + $this->setContentType($path, $contents); |
|
140 | 140 | } catch (RuntimeException $exception) { |
141 | 141 | $this->deleteTempFile($tmpfname); |
142 | 142 | |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | Cosapi::upload($this->getBucket(), $uri, $path, $path, null, null, 0) |
167 | 167 | ); |
168 | 168 | |
169 | - $this->setContentType($path, stream_get_contents($resource)); |
|
169 | + $this->setContentType($path, stream_get_contents($resource)); |
|
170 | 170 | } catch (RuntimeException $exception) { |
171 | 171 | if ($exception->getCode() == -4018) { |
172 | 172 | return $this->getMetadata($path); |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | */ |
200 | 200 | public function copy($path, $newpath) |
201 | 201 | { |
202 | - $resource = $this->read($path); |
|
202 | + $resource = $this->read($path); |
|
203 | 203 | |
204 | 204 | return $this->update($newpath, $resource['contents'], new Config()); |
205 | 205 | } |