From 14657f85a5a475d03822ce786d749b11b158015e Mon Sep 17 00:00:00 2001 From: Alex Wright Date: Mon, 5 Nov 2018 20:32:38 +0100 Subject: [PATCH] Flask-fs didn't help with the send_file/context issue --- server.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server.py b/server.py index ae007de..b12408d 100644 --- a/server.py +++ b/server.py @@ -2,18 +2,17 @@ import logging import uuid import tempfile import os -import flask_fs as fs from flask import Flask, abort, request, Response, send_file import pypandoc app = Flask(__name__) -fs.init_app(app) app.logger.setLevel(logging.INFO) @app.route('/') def index(): return 'Hello' + @app.route('/convert', methods=['POST']) def convert(): if 'input' not in request.files: