Add chunked uploads and raise storage rate to GHS 0.30/GB/month.
Deploy Ladill Transfer / deploy (push) Successful in 39s

Large files upload in 5 MB chunks (hosting file manager pattern) for the
transfer UI and Ladill Mail S2S API, with no app-level file size cap when
TRANSFER_MAX_FILE_BYTES=0.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-08 12:07:27 +00:00
co-authored by Cursor
parent fb131cd7fa
commit 65b634bb0b
23 changed files with 797 additions and 27 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ class TransferService
throw new RuntimeException("You can upload up to {$maxFiles} files per transfer.");
}
$maxBytes = (int) config('transfer.max_file_bytes', 524288000);
$maxBytes = (int) config('transfer.max_file_bytes', 0);
$retentionDays = (int) ($data['retention_days'] ?? config('transfer.default_retention_days', 30));
$retentionDays = max(1, min(365, $retentionDays));
@@ -64,7 +64,7 @@ class TransferService
continue;
}
if ($file->getSize() > $maxBytes) {
if ($maxBytes > 0 && $file->getSize() > $maxBytes) {
throw new RuntimeException($file->getClientOriginalName().' exceeds the maximum file size.');
}