This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ def wechat_login(files_data):
|
||||
f = files_data['image']
|
||||
try:
|
||||
result = rpc.storage.upload(file_name='avatar_' + str(session['user_id']),
|
||||
file_binary=f.stream,
|
||||
file_binary=f.read(),
|
||||
bucket='bodyrecord',
|
||||
folder='avatar',
|
||||
app='bodyrecord')
|
||||
|
||||
Reference in New Issue
Block a user