mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +01:00
fix uploads folder detection (#433)
* Fix UPLOAD_FOLDER detection when run outside of repo directory
This commit is contained in:
@@ -77,7 +77,7 @@ class Config(object):
|
|||||||
The default destination is the CTFd/uploads folder. If you need Amazon S3 files
|
The default destination is the CTFd/uploads folder. If you need Amazon S3 files
|
||||||
you can use the CTFd S3 plugin: https://github.com/ColdHeat/CTFd-S3-plugin
|
you can use the CTFd S3 plugin: https://github.com/ColdHeat/CTFd-S3-plugin
|
||||||
'''
|
'''
|
||||||
UPLOAD_FOLDER = os.environ.get('UPLOAD_FOLDER') or os.path.join(os.path.dirname(__file__), 'uploads')
|
UPLOAD_FOLDER = os.environ.get('UPLOAD_FOLDER') or os.path.join(os.path.dirname(os.path.abspath(__file__)), 'uploads')
|
||||||
|
|
||||||
'''
|
'''
|
||||||
TEMPLATES_AUTO_RELOAD specifies whether Flask should check for modifications to templates and
|
TEMPLATES_AUTO_RELOAD specifies whether Flask should check for modifications to templates and
|
||||||
|
|||||||
Reference in New Issue
Block a user