Added file upload

This commit is contained in:
Yusur 2019-05-02 15:47:23 +02:00
parent 4dd61c825a
commit 244f689afc
6 changed files with 45 additions and 6 deletions

View file

@ -1,10 +1,11 @@
{% extends "base.html" %}
{% block body %}
<h2>Create</h2>
<form action="{{ url_for('create') }}" method=post>
<form action="{{ url_for('create') }}" method="POST" enctype="multipart/form-data">
<dl>
<dt>Message:</dt>
<dd><textarea name="text" placeholder="What's happening?"></textarea></dd>
<dd id="fileInputContainer"><a href="javascript:attachFileInput();">Add a file...</a>
<dd><input type="submit" value="Create" /></dd>
</dl>
</form>