Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15344888
D12111.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
963 B
Referenced Files
None
Subscribers
None
D12111.id.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 11, 7:07 AM (1 w, 13 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7482558
Default Alt Text
D12111.id.diff (963 B)
Attached To
Mode
D12111: Fix chunk upload fallback behavior
Attached
Detach File
Event Timeline
Log In to Comment