uploads: Split out S3 and local file backends into separate files.

The uploads file is large, and conceptually the S3 and local-file
backends are separable.
This commit is contained in:
Alex Vandiver
2022-12-14 20:51:37 +00:00
committed by Alex Vandiver
parent 497abc2e48
commit 7c0d414aff
22 changed files with 1293 additions and 1256 deletions

View File

@@ -21,7 +21,7 @@ from PIL import Image
from zerver.lib.integrations import INTEGRATIONS
from zerver.lib.storage import static_path
from zerver.lib.upload import DEFAULT_AVATAR_SIZE, resize_avatar
from zerver.lib.upload.base import DEFAULT_AVATAR_SIZE, resize_avatar
def create_square_image(png: bytes) -> bytes: