from flask.ext.uploads import UploadSet, configure_uploads, patch_request_class from flask.ext import uploads upload_files = UploadSet('files', uploads.ALL, "/tmp") configure_uploads(app, (upload_files)) upload_images = UploadSet('images', uploads.IMAGES, "/tmp/images") configure_uploads(app, (upload_images)) # This is the line that fails patch_request_class(app, size=32*1024*1024) ------------- Traceback (most recent call last): File "run.py", line 2, in from app import app File "/data/www/virtual/bespecific.dk/adora-cms/app/__init__.py", line 33, in configure_uploads(app, (upload_images)) File "/data/www/virtual/bespecific.dk/adora-cms/venv/local/lib/python2.7/site-packages/flaskext/uploads.py", line 194, in configure_uploads config = config_for_set(uset, app, defaults) File "/data/www/virtual/bespecific.dk/adora-cms/venv/local/lib/python2.7/site-packages/flaskext/uploads.py", line 155, in config_for_set destination = uset.default_dest(app) TypeError: 'str' object is not callable