diff --git a/app.py b/app.py index 367f0f7..bd972f9 100644 --- a/app.py +++ b/app.py @@ -97,11 +97,12 @@ def image(): if request.method == 'POST': if 'image' not in request.files: - return redirect(request.url) + return render_image_template() + file = request.files['image'] if file.filename == '': - return redirect(request.url) + return render_image_template() if file: extension = os.path.splitext(file.filename)[1]