DEV: Only support multipart for backup S3 uploads with Uppy (#15270)

In the composer, we already only allow for S3 multipart uploads
if enable_direct_s3_uploads is true, so in the backups uploader
that is based on Uppy we want to do the same thing. In future
if self-hosters need some way to not use S3 multipart in these
scenarios for whatever reason we can revisit this then (which
should be as simple as adding a enable_multipart_s3_uploads site
setting).
This commit is contained in:
Martin Brennan
2021-12-13 15:24:00 +10:00
committed by GitHub
parent 18a209bd0d
commit 40d13ce662
3 changed files with 6 additions and 12 deletions

View File

@@ -12,7 +12,7 @@
class="btn-default"}}
{{/if}}
{{else}}
{{#if (and siteSettings.enable_direct_s3_uploads siteSettings.enable_experimental_backup_uploader)}}
{{#if siteSettings.enable_experimental_backup_uploader}}
{{uppy-backup-uploader done=(route-action "remoteUploadSuccess")}}
{{else}}
{{backup-uploader done=(route-action "remoteUploadSuccess")}}