📅  最后修改于: 2022-03-11 14:45:31.516000             🧑  作者: Mango
# If using disk :
request.files['file'].save("/tmp/foo")
size = os.stat("/tmp/foo").st_size
# If not using disk :
blob = request.files['file'].read()
size = len(blob)