diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2011-04-16 22:56:40 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2011-04-16 22:56:40 +0200 |
commit | a7da3cd6a0f847820efd71a7aa2f58fb4fcf05a0 (patch) | |
tree | e55948bb0d1e580ae2632c7ba50b02c710ea5b76 /files/templates | |
parent | 6d64a90c240bb88f750f8744449bd8e6e400dfe8 (diff) | |
download | nextcloud-server-a7da3cd6a0f847820efd71a7aa2f58fb4fcf05a0.tar.gz nextcloud-server-a7da3cd6a0f847820efd71a7aa2f58fb4fcf05a0.zip |
basic file upload reimplemented
Diffstat (limited to 'files/templates')
-rw-r--r-- | files/templates/index.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/files/templates/index.php b/files/templates/index.php index f1fdafc27cc..94d3769c9ac 100644 --- a/files/templates/index.php +++ b/files/templates/index.php @@ -7,8 +7,20 @@ <div class="controls"> <p class="actions"> - <a href="" title="" class="upload">Upload</a><a href="" title="" class="new-dir">New folder</a><a href="" title="" class="download">Download</a><a href="" title="" class="share">Share</a><a href="" title="" class="delete">Delete</a> + <a href="" title="" class="upload" id="file_upload_button">Upload</a><a +href="" title="" class="new-dir">New folder</a><a href="" title="" +class="download">Download</a><a href="" title="" class="share">Share</a><a +href="" title="" class="delete">Delete</a> </p> + <div id="file_upload_form"> + <form action="ajax/upload.php" +method="post" enctype="multipart/form-data" target="file_upload_target"><input +type="hidden" name="MAX_FILE_SIZE" value="2097152" id="max_upload"><input +type="hidden" name="dir" value="<?php echo $_["dir"] ?>" id="dir"><input +type="file" name="file" id="fileSelector"><input type="submit" +id="file_upload_start" value="Upload" /><iframe id="file_upload_target" +name="file_upload_target" src=""></iframe></form> + </div> </div> <p class="nav"> |