Skip to content

Instantly share code, notes, and snippets.

@wolfiex
Created November 13, 2020 00:04
Show Gist options
  • Save wolfiex/680400fc6251616c846e87c109417e76 to your computer and use it in GitHub Desktop.
Save wolfiex/680400fc6251616c846e87c109417e76 to your computer and use it in GitHub Desktop.
Upload Flask confi
'''
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