@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhabricatorExecFutureFileUploadSource
4 extends PhabricatorFileUploadSource {
5
6 private $future;
7
8 public function setExecFuture(ExecFuture $future) {
9 $this->future = $future;
10 return $this;
11 }
12
13 public function getExecFuture() {
14 return $this->future;
15 }
16
17 protected function newDataIterator() {
18 $future = $this->getExecFuture();
19
20 return id(new LinesOfALargeExecFuture($future))
21 ->setDelimiter(null);
22 }
23
24 protected function getDataLength() {
25 return null;
26 }
27
28}