Read a zip file sent to a flask server without storing it on disk
问题 I would like to read all the files in a zip file of a specific type sent to a flask server via a form post request without having to store the zip file on disk. 回答1: First, get the code to get the zip file from flask import Flask, request app = Flask(__name__) @app.route("/",methods=["GET"]) def page_name_get(): return """<form action="." method="post" enctype=multipart/form-data> <input type="file" accept="application/zip" name="data_zip_file" accept="application/zip" required> <button type=