How to get multiple images from Flask request object at once in case of Content-Type:multipart/form-data?

Solution
for item in request.files.getlist('image'):
    data = item.read()
    print('len:', len(data))
from flask import Flask, request, render_template_string

app = Flask(__name__)

@app.route('/', methods=['GET', 'POST'])
def image():
    if request.method == "POST":
        #print('args :', request.args)
        #print('form :', request.form)
        #print('json :', request.json)
        #print('files:', request.files)
        print(request.files['image'])
        print(request.files.getlist('image'))
        
        for item in request.files.getlist('image'):
            data = item.read()
            print('len:', len(data))
        
    return render_template_string('''
Single image:
Multiple images:
''') if __name__ == '__main__': #app.debug = True app.run()