Add chunked uploads and raise storage rate to GHS 0.30/GB/month.
Deploy Ladill Transfer / deploy (push) Successful in 39s
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:
+9
-3
@@ -9,10 +9,16 @@ return [
|
||||
]),
|
||||
|
||||
// GHS per GB per month of retention (see qr-suite-decomposition.md §7.3).
|
||||
'price_per_gb_month' => (float) env('TRANSFER_PRICE_PER_GB_MONTH', 0.15),
|
||||
'price_per_gb_month' => (float) env('TRANSFER_PRICE_PER_GB_MONTH', 0.30),
|
||||
|
||||
// Max single-file upload size (bytes). Default 500 MB.
|
||||
'max_file_bytes' => (int) env('TRANSFER_MAX_FILE_BYTES', 524288000),
|
||||
// Max single-file upload size (bytes). 0 = no limit (chunked uploads handle large files).
|
||||
'max_file_bytes' => (int) env('TRANSFER_MAX_FILE_BYTES', 0),
|
||||
|
||||
// Bit-sized upload sessions (init → chunk → finalize), same pattern as hosting file manager.
|
||||
'chunk_upload' => [
|
||||
'path' => env('TRANSFER_CHUNK_UPLOAD_PATH', storage_path('app/chunked_uploads')),
|
||||
'chunk_size_bytes' => (int) env('TRANSFER_CHUNK_SIZE_BYTES', 5 * 1024 * 1024),
|
||||
],
|
||||
|
||||
// Max files per transfer.
|
||||
'max_files_per_transfer' => (int) env('TRANSFER_MAX_FILES', 20),
|
||||
|
||||
Reference in New Issue
Block a user