OK. What I really meant was to add an if app.config['UPLOAD_METHOD'] == 'backspace' instead of an else :-)