Skip to content

Commit

Permalink
V3
Browse files Browse the repository at this point in the history
  • Loading branch information
gachouchani1999 committed Sep 19, 2021
1 parent 5896d60 commit fb59134
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flaskr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


app = Flask(__name__, instance_relative_config=True)

global f
@app.route('/', methods=['GET', 'POST'])
def upload_file():
return render_template('upload.html')
Expand All @@ -17,7 +17,6 @@ def upload_file():
@app.route('/uploader', methods=['GET', 'POST'])
def index():
if request.method == 'POST':
global f
f = request.files['file']
theme = request.form['theme']
f.filename = f.filename.replace(" ","_")
Expand Down

0 comments on commit fb59134

Please sign in to comment.