mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +01:00
Remove the size limit on arc side
Summary: remove the size check. The conduit call will fail later if the size is too large, and we will get better error message. Test Plan: run arc diff with files smaller and larger than the size limit. Reviewed By: epriestley Reviewers: epriestley CC: aran, epriestley Differential Revision: 729
This commit is contained in:
parent
eb98ab553e
commit
1bb2409d47
1 changed files with 0 additions and 6 deletions
|
@ -819,12 +819,6 @@ EOTEXT
|
||||||
$mime_type = trim($mime_type);
|
$mime_type = trim($mime_type);
|
||||||
$result['mime'] = $mime_type;
|
$result['mime'] = $mime_type;
|
||||||
|
|
||||||
// TODO: Make this configurable.
|
|
||||||
$bin_limit = 1024 * 1024; // 1 MB limit
|
|
||||||
if (strlen($data) > $bin_limit) {
|
|
||||||
return $result;
|
|
||||||
}
|
|
||||||
|
|
||||||
$bytes = strlen($data);
|
$bytes = strlen($data);
|
||||||
echo "Uploading {$desc} '{$name}' ({$mime_type}, {$bytes} bytes)...\n";
|
echo "Uploading {$desc} '{$name}' ({$mime_type}, {$bytes} bytes)...\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue