Added file upload
This commit is contained in:
parent
4dd61c825a
commit
244f689afc
6 changed files with 45 additions and 6 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue