zulip/zerver/lib/upload
Sahil Batra 5ef14c3a8e users: Fix uploading user avatars.
Due to recent refactoring in 9fb03cb2c7, a user could not
upload avatar if the server uses local upload backend and there
was already an avatar file for that user.

This commit fixes it to just check if there exists a file only
when importing and not when the user is actually trying to
change the avatar.

Fixes #30676.
2024-07-02 13:26:21 -07:00
..
__init__.py users: Fix uploading user avatars. 2024-07-02 13:26:21 -07:00
base.py upload: Content-type is always defined. 2024-06-26 16:43:11 -07:00
local.py users: Fix uploading user avatars. 2024-07-02 13:26:21 -07:00
s3.py upload: Content-type is always defined. 2024-06-26 16:43:11 -07:00