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.
This commit is contained in:
parent
352777a074
commit
69b552a211
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue