More robust and clean up
This commit is contained in:
@@ -49,8 +49,6 @@ async def upload_files(
|
|||||||
else:
|
else:
|
||||||
return mk_resp(data=None, status_code=400)
|
return mk_resp(data=None, status_code=400)
|
||||||
|
|
||||||
# file_info_li = await save_file_li(file_list, for_object_type, for_object_id, for_object_id_random)
|
|
||||||
|
|
||||||
file_info_list = []
|
file_info_list = []
|
||||||
for file_obj in file_list:
|
for file_obj in file_list:
|
||||||
file_info = await save_file(file=file_obj, account_id=account_id, account_id_random=account_id_random, for_object_type=for_object_type, for_object_id=for_object_id, for_object_id_random=for_object_id_random, check_allowed_extension=check_allowed_extension)
|
file_info = await save_file(file=file_obj, account_id=account_id, account_id_random=account_id_random, for_object_type=for_object_type, for_object_id=for_object_id, for_object_id_random=for_object_id_random, check_allowed_extension=check_allowed_extension)
|
||||||
|
|||||||
Reference in New Issue
Block a user