Skip to content

Commit 715f120

Browse files
author
Joe Gasewicz
authored
Merge pull request #121 from ujjwalbe/patch-1
Updated readme for properly importing the module
2 parents 85ebd7a + 768c024 commit 715f120

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ pip install flask-file-upload
2121
#### General Flask config options
2222
(Important: The below configuration variables need to be set before initiating `FileUpload`)
2323
````python
24+
from flask_file_upload.file_upload import FileUpload
25+
from os.path import join, dirname, realpath
26+
2427
# This is the directory that flask-file-upload saves files to. Make sure the UPLOAD_FOLDER is the same as Flasks's static_folder or a child. For example:
2528
app.config["UPLOAD_FOLDER"] = join(dirname(realpath(__file__)), "static/uploads")
2629

0 commit comments

Comments
 (0)