Created
November 13, 2020 00:04
-
-
Save wolfiex/680400fc6251616c846e87c109417e76 to your computer and use it in GitHub Desktop.
Upload Flask confi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Global arguments | |
''' | |
import os | |
# maximum filesize in megabytes | |
file_mb_max = 100 | |
# encryption key | |
app_key = 'any_non_empty_string' | |
# full path destination for our upload files | |
upload_dest = os.path.join(os.getcwd(), 'uploads_folder') | |
# list of allowed allowed extensions | |
extensions = set(['txt', 'pdf', 'png', 'tiff','gtiff']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment