fixed import of werkzeug secure_filename
This commit is contained in:
parent
3fe68c221a
commit
17d7353d39
1 changed files with 1 additions and 1 deletions
|
|
@ -612,7 +612,7 @@ pass it through the :func:`~werkzeug.utils.secure_filename` function that
|
|||
Werkzeug provides for you::
|
||||
|
||||
from flask import request
|
||||
from werkzeug import secure_filename
|
||||
from werkzeug.utils import secure_filename
|
||||
|
||||
@app.route('/upload', methods=['GET', 'POST'])
|
||||
def upload_file():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue