from flask import Blueprint, request, jsonify, flash submit = Blueprint("submit", __name__, template_folder="templates") @submit.route("/submit", methods=["GET", "POST"]) def submit_sigs(): if request.method == "POST": if "file" not in request.files: flash("No file part") return redirect(request.url) f = request.files["file"] print(f, request.form["public_url"]) return jsonify({}), 200 return """ Upload new File

Upload new File

"""