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 @@

Files

{{ name }} [X]
{% endfor %}
-
- + + +
diff --git a/setup.py b/setup.py index 1eaaf0b..7152bb3 100644 --- a/setup.py +++ b/setup.py @@ -2,12 +2,12 @@ setup( name = 'copilot', packages = ['copilot'], - version = '0.1.6', + version = '0.1.7', description = 'Application to manage files on external USB drives', author = 'Erik Davidson', author_email = 'erik@erikd.org', url = 'https://github.com/aphistic/copilot', - download_url = 'https://github.com/aphistic/copilot/tarball/0.1.6', + download_url = 'https://github.com/aphistic/copilot/tarball/0.1.7', keywords = ['raspberrypi', 'raspberry', 'pi', 'filemanager'], classifiers = [], install_requires = [