import os


DB_USER = os.getenv('REDI_DROPPER_DB_USER', 'redidropper')
DB_PASS = os.getenv('REDI_DROPPER_DB_PASS', 'securepass')

# http://effbot.org/librarybook/os-path.htm
INCOMING_TEMP_DIR  = os.getenv('REDI_DROPPER_INCOMING_TEMP_DIR', \
        os.path.expanduser('~/.redidropper/incoming/temp'))

INCOMING_SAVED_DIR = os.getenv('REDI_DROPPER_NCOMING_SAVED_DIR',\
        os.path.expanduser('~/.redidropper/incoming/saved'))

import os


# Limit the max upload size for the app to 20 MB
# @see https://pythonhosted.org/Flask-Uploads/
DEFAULT_MAX_CONTENT_LENGTH = 20 * 1024 * 1024
MAX_CONTENT_LENGTH = os.getenv('REDI_DROPPER_MAX_CONTENT_LENGTH', DEFAULT_MAX_CONTENT_LENGTH)

DB_USER = os.getenv('REDI_DROPPER_DB_USER', 'redidropper')
DB_PASS = os.getenv('REDI_DROPPER_DB_PASS', 'securepass')

# http://effbot.org/librarybook/os-path.htm
INCOMING_TEMP_DIR  = os.getenv('REDI_DROPPER_INCOMING_TEMP_DIR', \
        os.path.expanduser('~/.redidropper/incoming/temp'))

INCOMING_SAVED_DIR = os.getenv('REDI_DROPPER_NCOMING_SAVED_DIR',\
        os.path.expanduser('~/.redidropper/incoming/saved'))

Allow max 20MB file chunks
Allow max 20MB file chunks

  import os
  
+ 
+ # Limit the max upload size for the app to 20 MB
+ # @see https://pythonhosted.org/Flask-Uploads/
+ DEFAULT_MAX_CONTENT_LENGTH = 20 * 1024 * 1024
+ MAX_CONTENT_LENGTH = os.getenv('REDI_DROPPER_MAX_CONTENT_LENGTH', DEFAULT_MAX_CONTENT_LENGTH)
  
  DB_USER = os.getenv('REDI_DROPPER_DB_USER', 'redidropper')
  DB_PASS = os.getenv('REDI_DROPPER_DB_PASS', 'securepass')
  
  # http://effbot.org/librarybook/os-path.htm
  INCOMING_TEMP_DIR  = os.getenv('REDI_DROPPER_INCOMING_TEMP_DIR', \
          os.path.expanduser('~/.redidropper/incoming/temp'))
  
  INCOMING_SAVED_DIR = os.getenv('REDI_DROPPER_NCOMING_SAVED_DIR',\
          os.path.expanduser('~/.redidropper/incoming/saved'))
  
Allow max 20MB file chunks
## Code Before:
import os


DB_USER = os.getenv('REDI_DROPPER_DB_USER', 'redidropper')
DB_PASS = os.getenv('REDI_DROPPER_DB_PASS', 'securepass')

# http://effbot.org/librarybook/os-path.htm
INCOMING_TEMP_DIR  = os.getenv('REDI_DROPPER_INCOMING_TEMP_DIR', \
        os.path.expanduser('~/.redidropper/incoming/temp'))

INCOMING_SAVED_DIR = os.getenv('REDI_DROPPER_NCOMING_SAVED_DIR',\
        os.path.expanduser('~/.redidropper/incoming/saved'))

## Instruction:
Allow max 20MB file chunks
## Code After:
import os


# Limit the max upload size for the app to 20 MB
# @see https://pythonhosted.org/Flask-Uploads/
DEFAULT_MAX_CONTENT_LENGTH = 20 * 1024 * 1024
MAX_CONTENT_LENGTH = os.getenv('REDI_DROPPER_MAX_CONTENT_LENGTH', DEFAULT_MAX_CONTENT_LENGTH)

DB_USER = os.getenv('REDI_DROPPER_DB_USER', 'redidropper')
DB_PASS = os.getenv('REDI_DROPPER_DB_PASS', 'securepass')

# http://effbot.org/librarybook/os-path.htm
INCOMING_TEMP_DIR  = os.getenv('REDI_DROPPER_INCOMING_TEMP_DIR', \
        os.path.expanduser('~/.redidropper/incoming/temp'))

INCOMING_SAVED_DIR = os.getenv('REDI_DROPPER_NCOMING_SAVED_DIR',\
        os.path.expanduser('~/.redidropper/incoming/saved'))
