diff options
author | Byron Jones <glob@mozilla.com> | 2015-08-11 17:16:38 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-08-11 17:17:00 +0200 |
commit | 99bec2e52b174c1e8774ebf12da5963330d47af9 (patch) | |
tree | ee9f39a742eb6739be38355eac4af3399d17fb01 /Bugzilla/Attachment.pm | |
parent | dd7cd13b7cecaa92caebd3c4930154b2de35ff29 (diff) | |
download | bugzilla-99bec2e52b174c1e8774ebf12da5963330d47af9.tar.gz bugzilla-99bec2e52b174c1e8774ebf12da5963330d47af9.tar.xz |
Bug 1160929 - add support for storing attachments in s3
Diffstat (limited to 'Bugzilla/Attachment.pm')
-rw-r--r-- | Bugzilla/Attachment.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm index c3e48b899..0cdec6bf0 100644 --- a/Bugzilla/Attachment.pm +++ b/Bugzilla/Attachment.pm @@ -908,6 +908,10 @@ sub get_storage_by_name { require Bugzilla::Attachment::FileSystem; return Bugzilla::Attachment::FileSystem->new(); } + elsif ($name eq 's3') { + require Bugzilla::Attachment::S3; + return Bugzilla::Attachment::S3->new(); + } else { return undef; } |