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
$mime_type = trim($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);
echo "Uploading {$desc} '{$name}' ({$mime_type}, {$bytes} bytes)...\n";