From 69b552a211a05c8b4e6bac622a349eb7aa09b69c Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Wed, 13 Nov 2024 15:01:44 +0800 Subject: [PATCH] DEV: Fix `uploads:fix_missing_s3` rake task when file is too big (#29735) If the upload has existed before, we should allow the upload to be created even if the upload's size is too big. --- lib/tasks/uploads.rake | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake index 79a966b1c54..14f65e4dbf5 100644 --- a/lib/tasks/uploads.rake +++ b/lib/tasks/uploads.rake @@ -1122,6 +1122,7 @@ def fix_missing_s3 tempfile, "temp.#{upload.extension}", skip_validations: true, + external_upload_too_big: true, ).create_for(Discourse.system_user.id) rescue => fix_error # invalid extension is the most common issue