My view function.
from flask import Flask from config import Config app = Flask(__name__) UPLOAD_FOLDER = \'filepath\' app.config[\'UPLOAD_FOLDER\'] = UPLOAD_FOL