bug: S3Uploader loads entire file into RAM via file_get_contents #73
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: CRITICAL
S3Uploader::singleUpload()usesfile_get_contents($localPath)on files up to 100 MB, loading the entire backup archive into a PHP string. Combined with existing memory usage from the backup process, this reliably causes OOM on medium-to-large sites.Fix
Use
CURLOPT_UPLOAD => truewithCURLOPT_INFILEandCURLOPT_INFILESIZEto stream the file to S3.File
src/Engine/S3Uploader.php:118-131