mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
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,
|
tempfile,
|
||||||
"temp.#{upload.extension}",
|
"temp.#{upload.extension}",
|
||||||
skip_validations: true,
|
skip_validations: true,
|
||||||
|
external_upload_too_big: true,
|
||||||
).create_for(Discourse.system_user.id)
|
).create_for(Discourse.system_user.id)
|
||||||
rescue => fix_error
|
rescue => fix_error
|
||||||
# invalid extension is the most common issue
|
# invalid extension is the most common issue
|
||||||
|
Loading…
Reference in New Issue
Block a user