Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/uploadsource/PhabricatorFileUploadSource.php
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | abstract class PhabricatorFileUploadSource | ||||
| private function readFileData() { | private function readFileData() { | ||||
| $data = $this->getDataIterator(); | $data = $this->getDataIterator(); | ||||
| if (!$this->didRewind) { | if (!$this->didRewind) { | ||||
| $data->rewind(); | $data->rewind(); | ||||
| $this->didRewind = true; | $this->didRewind = true; | ||||
| } else { | } else { | ||||
| if ($data->valid()) { | |||||
| $data->next(); | $data->next(); | ||||
| } | } | ||||
| } | |||||
| if (!$data->valid()) { | if (!$data->valid()) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| $rope = $this->getRope(); | $rope = $this->getRope(); | ||||
| $rope->append($data->current()); | $rope->append($data->current()); | ||||
| ▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines | |||||