You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
{% extends 'layout/simple.html' %}
{% block body %}
{% if fdoc %}
< p > {{ _('Uploaded file info') }}:< / p >
< p > {{ _('ID') }}: {{ fdoc['_id'] }}< / p >
< p > {{ _('Userfile doc_id') }}: {{ ufid }}< / p >
< p > {{ _('MD5') }}: {{ fdoc['md5'] }}< / p >
< p > {{ _('URL') }}: {{ model.file.url(fdoc) }}< / p >
{% endif %}
< form method = "post" enctype = "multipart/form-data" >
< input type = "hidden" name = "csrfToken" value = "{{ handler.csrfToken }}" >
< p >
{{ _('New file') }}:
< input type = "text" name = "title" placeholder = "{{ _('Description') }}" >
< input type = "file" name = "file" >
< input type = "submit" value = "{{ _('Upload') }}" class = "rounded primary button" >
< / p >
< p > {{ _('Note: file size should be less than or equal to {0}, and file type should be in {1}. Empty files are not allowed.').format(size(FILE_MAX_LENGTH), ALLOWED_MIMETYPE_PREFIX) }}< / p >
< p > {{ _('Usage: {0}, Quota: {1}').format(size(usage), size(quota)) }}< / p >
< / form >
{% endblock %}