File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ public function put($source, $target) {
174
174
$ sourceHandle = fopen ($ source , 'rb ' );
175
175
$ targetHandle = $ this ->state ->create ($ this ->buildUrl ($ target ));
176
176
177
- while ($ data = fread ($ sourceHandle , 4096 )) {
177
+ while ($ data = fread ($ sourceHandle , NativeReadStream:: CHUNK_SIZE )) {
178
178
$ this ->state ->write ($ targetHandle , $ data );
179
179
}
180
180
$ this ->state ->close ($ targetHandle );
@@ -214,7 +214,7 @@ public function get($source, $target) {
214
214
throw new InvalidResourceException ('Failed opening remote file " ' . $ source . '" for reading ' );
215
215
}
216
216
217
- while ($ data = $ this ->state ->read ($ sourceHandle , 4096 )) {
217
+ while ($ data = $ this ->state ->read ($ sourceHandle , NativeReadStream:: CHUNK_SIZE )) {
218
218
fwrite ($ targetHandle , $ data );
219
219
}
220
220
$ this ->state ->close ($ sourceHandle );
You can’t perform that action at this time.
0 commit comments