diff options
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/edit-file.htm | 5 | ||||
| -rw-r--r-- | data/templates/edit.htm | 2 | ||||
| -rw-r--r-- | data/templates/index.htm | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/data/templates/edit-file.htm b/data/templates/edit-file.htm index b320d8d..53c2c01 100644 --- a/data/templates/edit-file.htm +++ b/data/templates/edit-file.htm @@ -17,11 +17,8 @@ <textarea name="files[{{fileid}}][content]" id="content_{{fileid}}" cols="80" rows="15" class="content">{{file.getContent}}</textarea> <div class="row-fluid"> <div class="span9"> - - <!-- - <label for="upload_{{fileid}}" class="inline">Replace with file upload:</label> + <label for="upload_{{fileid}}" class="inline">Replace with upload:</label> <input type="file" name="files[{{fileid}}][upload]" id="upload_{{fileid}}" class="btn"/> - --> </div> {% if not newfile %} <div class="span3" style="text-align: right"> diff --git a/data/templates/edit.htm b/data/templates/edit.htm index 19494b6..f1f4a51 100644 --- a/data/templates/edit.htm +++ b/data/templates/edit.htm @@ -2,7 +2,7 @@ {% block title %}Edit paste{% endblock %} {% block content %} -<form method="post" action="{{repo.getLink('edit')}}"> +<form method="post" action="{{repo.getLink('edit')}}" enctype="multipart/form-data"> <div class="control-group well pastedata"> <label for="description">Description</label> <input type="text" name="description" id="description" value="{{repo.getDescription}}"/> diff --git a/data/templates/index.htm b/data/templates/index.htm index 31913bc..05c4c05 100644 --- a/data/templates/index.htm +++ b/data/templates/index.htm @@ -2,7 +2,7 @@ {% block title %}New paste{% endblock %} {% block content %} -<form method="post" action="/"> +<form method="post" action="/" enctype="multipart/form-data"> <div class="control-group well pastedata"> <label for="description">Description</label> <input type="text" name="description" id="description" value="{{description}}"/> |
