how to get the size of a multipart/form-data binary file?

Solution
import os

file = request.files['file']
file.seek(0, os.SEEK_END)
file_length = file.tell()
# file_length should tell you the size of your .zip file
request.files['file'].save('/tmp/file')
file_length = os.stat('/tmp/file').st_size