Skip to content

Commit

Permalink
max filesize changed
Browse files Browse the repository at this point in the history
  • Loading branch information
naueramant authored Dec 2, 2017
1 parent ad267d0 commit a9cc749
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dagensdatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
# Configure dropzone file uploads
#

app.config['MAX_CONTENT_LENGTH'] = 25 * 1024 * 1024

app.config['DROPZONE_ALLOWED_FILE_CUSTOM'] = True
app.config['DROPZONE_ALLOWED_FILE_TYPE'] = 'image/*'
app.config['DROPZONE_MAX_FILE_SIZE'] = 5 # max 5mb files
app.config['DROPZONE_MAX_FILE_SIZE'] = 25 # max 5mb files
app.config['DROPZONE_INPUT_NAME'] = 'images'
app.config['DROPZONE_DEFAULT_MESSAGE'] = 'Drop images here to upload'

Expand Down

0 comments on commit a9cc749

Please sign in to comment.