diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-05-23 21:12:52 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-05-23 21:15:21 +0100 |
commit | d5342d7096e8bb568f1af7bdc9200b03537bb9fc (patch) | |
tree | b59e4d6a9b0b8c289cec58b597c9fccbba15e8cd /app/utils.py | |
parent | 59f75bb71c361ae442febf3666838ef055849c30 (diff) | |
download | cheatdb-d5342d7096e8bb568f1af7bdc9200b03537bb9fc.tar.xz |
Move static and uploads to public dir
Diffstat (limited to 'app/utils.py')
-rw-r--r-- | app/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/utils.py b/app/utils.py index 3293c5a..6be889e 100644 --- a/app/utils.py +++ b/app/utils.py @@ -47,7 +47,7 @@ def doFileUpload(file, allowedExtensions, fileTypeName): return None filename = randomString(10) + "." + ext - file.save(os.path.join(app.config["UPLOAD_FOLDER"], filename)) + file.save(os.path.join("public/uploads", filename)) return "/uploads/" + filename |