A client is sending files with arbitrary names. I am handling the request with the following implementation.
@app.route('/', methods=['GET', 'POST']) def upload_file(): if request.method == 'POST': # 'file-name' is the file name here if 'file-name' not in request.files: flash('No file part') return 'no file found' file = request.files['file-name']Should I ask another query/path parameter which defines the file name?