diff --git a/flaskr/__init__.py b/flaskr/__init__.py index 4bd2846..6643126 100644 --- a/flaskr/__init__.py +++ b/flaskr/__init__.py @@ -22,7 +22,8 @@ def index(): f = request.files['file'] theme = request.form['theme'] f.save(secure_filename(f.filename)) - doc_reader.final_create(int(theme),f.filename) + path = '../'+f.filename + doc_reader.final_create(int(theme),path) return render_template('download.html') @app.route('/download')