Skip to content

Commit 768c024

Browse files
authored
Updated readme for properly importing the module
There is no clear declaration how to import the module and it's really confusing for new comers.
1 parent 85ebd7a commit 768c024

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)