diff --git a/copilot/file_server.py b/copilot/file_server.py index c0ca11b..fe4eb2c 100644 --- a/copilot/file_server.py +++ b/copilot/file_server.py @@ -74,7 +74,7 @@ def home(): web_path = request.args.get('path') or '' if request.method == 'POST': if request.form['action'] == 'create': - f = request.files['file'] + f = request.files['upfile'] if f: fname = secure_filename(f.filename) fpath = os.path.join(app.config['ROOT_PATH'], web_path, fname) diff --git a/copilot/templates/home.html b/copilot/templates/home.html index 261447d..bc6c2df 100644 --- a/copilot/templates/home.html +++ b/copilot/templates/home.html @@ -36,8 +36,9 @@