diff --git a/README.md b/README.md index 8d23fe7..377a999 100644 --- a/README.md +++ b/README.md @@ -111,5 +111,8 @@ Operation is one of download, direct_download, zip_download, or upload - @app.route('/script/direct//', methods=['GET']) Get a bash script that downloads all the files in a share using direct filename tokens. - @app.route('/script/upload_split//', methods=['GET']) - Get a bash script that uploads multiple files and folders. The script splits files + Get a python script that uploads multiple files and folders. The script splits files to smaller chunks, to prevent timeouts. Folders are uploaded as .tar +- @app.route('/script/client//', methods=['GET']) + Get a python script that is a console client for downloading and + uploading files. diff --git a/code/app.py b/code/app.py index e96f8de..7127765 100644 --- a/code/app.py +++ b/code/app.py @@ -228,14 +228,6 @@ def upload_url(): -@app.route('/send/', methods=['GET']) -def send(name): - (ok,share) = get_share(name) - if not ok: - return share - return render_template('send.html',name=name) - - @app.route('/file/list//', methods=['GET']) def file_list(name, token): (ok,share) = get_share(name, token = token) diff --git a/code/static/js/scripts.js b/code/static/js/scripts.js index 614c276..224ebdd 100644 --- a/code/static/js/scripts.js +++ b/code/static/js/scripts.js @@ -146,3 +146,7 @@ function UploadURL() { } } + +function changeTitle(newTitle) { + document.title = "Flees - " + newTitle; +} diff --git a/code/templates/authenticate.html b/code/templates/authenticate.html index 062f694..0c061f0 100644 --- a/code/templates/authenticate.html +++ b/code/templates/authenticate.html @@ -9,4 +9,5 @@ + {% endblock %} diff --git a/code/templates/index.html b/code/templates/index.html index 5103e7b..a9a98a8 100755 --- a/code/templates/index.html +++ b/code/templates/index.html @@ -30,4 +30,5 @@ {% endfor %} + {% endblock %} diff --git a/code/templates/list.html b/code/templates/list.html index 3016bec..20127e0 100644 --- a/code/templates/list.html +++ b/code/templates/list.html @@ -94,4 +94,5 @@ {% endfor %} + {% endblock %} diff --git a/code/templates/logout.html b/code/templates/logout.html index cc1688e..3bc8566 100644 --- a/code/templates/logout.html +++ b/code/templates/logout.html @@ -4,4 +4,5 @@

You logged out from share {{ name|safe }}

Continue to index

+ {% endblock %} diff --git a/code/templates/send.html b/code/templates/send.html deleted file mode 100644 index 76484d8..0000000 --- a/code/templates/send.html +++ /dev/null @@ -1,9 +0,0 @@ -{% extends "layout.html" %} -{% block body %} - upload to {{ name|safe }} -
- -

- -

-{% endblock %}