before send to remote
This commit is contained in:
13
upload/templates/upload.html
Normal file
13
upload/templates/upload.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% block content %}
|
||||
|
||||
<form action="{% url 'upload:upload' %}" method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
<input type="file" name="image_file">
|
||||
<input type="submit" value="submit" />
|
||||
</form>
|
||||
|
||||
{% if image_url %}
|
||||
<p>File uploaded at: <a href="{{ image_url }}">{{ image_url }}</a></p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user