Page MenuHomePhabricator

D12111.id.diff
No OneTemporary

D12111.id.diff

diff --git a/src/workflow/ArcanistUploadWorkflow.php b/src/workflow/ArcanistUploadWorkflow.php
--- a/src/workflow/ArcanistUploadWorkflow.php
+++ b/src/workflow/ArcanistUploadWorkflow.php
@@ -66,6 +66,8 @@
}
$length = filesize($path);
+ $do_chunk_upload = false;
+
$phid = null;
try {
$result = $conduit->callMethodSynchronous(
@@ -90,7 +92,7 @@
// file data.
} else {
if ($phid) {
- $this->uploadChunks($phid, $path);
+ $do_chunk_upload = true;
} else {
// This is a small file that doesn't need to be uploaded in
// chunks, so continue normally.
@@ -101,6 +103,10 @@
pht('Unable to use allocate method, trying older upload method.'));
}
+ if ($do_chunk_upload) {
+ $this->uploadChunks($phid, $path);
+ }
+
if (!$phid) {
try {
$data = Filesystem::readFile($path);

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 11, 7:07 AM (1 w, 15 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7482558
Default Alt Text
D12111.id.diff (963 B)

Event Timeline