diff options
| author | ianb <devnull@localhost> | 2005-07-17 22:46:58 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-07-17 22:46:58 +0000 |
| commit | 6e551df13defede485cab46dbce167d102500bba (patch) | |
| tree | fbf3f0ec2e9d128a7ec4438b6b1f5f289bc97128 /examples | |
| parent | 85d23ff533219a3858152161409adae91d42863f (diff) | |
| download | paste-6e551df13defede485cab46dbce167d102500bba.tar.gz | |
Added upload form
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/filebrowser/templates/directory.pt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/filebrowser/templates/directory.pt b/examples/filebrowser/templates/directory.pt index 5f0df9a..fb49642 100644 --- a/examples/filebrowser/templates/directory.pt +++ b/examples/filebrowser/templates/directory.pt @@ -38,5 +38,12 @@ There are no files in this directory </p> +<form tal:attributes="action options/upload_url" method="POST" + enctype="multipart/form-data"> +Upload: <input type="hidden" name="action" value="upload"> +<input type="file" name="file"> +<input type="submit" value="Upload"> +</form> + </metal:body> </html>
\ No newline at end of file |
