我正在尝试将文件保存到存储桶:
if file and allowed_file(file.filename):
filename = secure_filename(file.filename)
try:
minioClient.make_bucket("testbuck", location = "us-east-1")
except BucketAlreadyOwnedByYou as err:
pass
except BucketAlreadyExists as err:
pass
except ResponseError as err:
raise
else:
try:
print(filename)
minioClient.fput_object('testbuck', filename, image)
except ResponseError as err:
print(err)
但得到错误:Message: {0}'.format(error.message))
InvalidXMLError: InvalidXMLError: message: "Error" XML is not parsable. Message: syntax error: line 1, column 0
我是后端和烧瓶的新手,无法弄清楚我做错了什么!谢谢你的耐心