mirror of
https://github.com/zulip/zulip.git
synced 2025-11-23 16:01:24 +00:00
Add tool for migrating users from Gravatar to user avatars
(imported from commit e3fbeb74489952f00f9063303f4026ee6a7148fc)
This commit is contained in:
@@ -52,9 +52,8 @@ def upload_image_to_s3(
|
||||
else:
|
||||
headers = None
|
||||
|
||||
key.set_contents_from_filename(
|
||||
user_file.temporary_file_path(),
|
||||
headers=headers)
|
||||
contents = user_file.read()
|
||||
key.set_contents_from_string(contents, headers=headers)
|
||||
|
||||
def get_file_info(request, user_file):
|
||||
uploaded_file_name = user_file.name
|
||||
|
||||
Reference in New Issue
Block a user