{% extends "updoc/base.html" %}{% load staticfiles i18n bootstrap3 djangofloor %} {% block title %}{% trans 'Upload a new file' %}{% endblock %} {% block content %}
{% trans 'You can also upload a doc with curl. Any documentation with the same name (belonging to the same user) will be replaced!' %}
FILENAME=filename.zip NAME=name-version KEYWORDS=keyword1,keyword2 {% if not df_remote_authenticated %}USERNAME= PASSWORD= {% endif %}curl --data-binary @$FILENAME -u {% if not df_remote_authenticated %}$USERNAME:$PASSWORD --basic{% else %}: --anyauth{% endif %} {{ root_host }}{% url 'updoc.views.upload_doc_api' %}?filename=$FILENAME&name=$NAME&keywords=$KEYWORDS{% endblock %}