feat: add logic of avatar image uploading 3
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
92d0e2a3cb
commit
7675d48483
|
@ -22,7 +22,7 @@ def wechat_login(files_data):
|
||||||
f = files_data['image']
|
f = files_data['image']
|
||||||
try:
|
try:
|
||||||
result = rpc.storage.upload(file_name='avatar_' + str(session['user_id']),
|
result = rpc.storage.upload(file_name='avatar_' + str(session['user_id']),
|
||||||
file_binary=f.stream,
|
file_binary=f.read(),
|
||||||
bucket='bodyrecord',
|
bucket='bodyrecord',
|
||||||
folder='avatar',
|
folder='avatar',
|
||||||
app='bodyrecord')
|
app='bodyrecord')
|
||||||
|
|
Loading…
Reference in New Issue