summaryrefslogtreecommitdiffstats
path: root/files/templates
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-06-03 02:44:31 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-06-03 02:44:31 +0200
commit00711341e9da369a2c99ff0085b7e36531986f0f (patch)
treed5f66c2b963e740cffb169ddb2f6880a7e86ecfb /files/templates
parent016a892a78472cc954f1e26feba0facfe4c893d5 (diff)
downloadnextcloud-server-00711341e9da369a2c99ff0085b7e36531986f0f.tar.gz
nextcloud-server-00711341e9da369a2c99ff0085b7e36531986f0f.zip
new file uploader that should work with more browsers
tested with konqueror, chromium and firefox 4
Diffstat (limited to 'files/templates')
-rw-r--r--files/templates/index.php22
1 files changed, 18 insertions, 4 deletions
diff --git a/files/templates/index.php b/files/templates/index.php
index 4d34222b966..6222724e7be 100644
--- a/files/templates/index.php
+++ b/files/templates/index.php
@@ -1,9 +1,23 @@
<div class="controls">
<div class="actions">
- <form id="file_upload_form" action="ajax/upload.php"
-method="post" enctype="multipart/form-data" target="file_upload_target"><input
-type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_["uploadMaxFilesize"] ?>" id="max_upload"><input
-type="hidden" class="max_human_file_size" value="(max <?php echo $_["uploadMaxHumanFilesize"]; ?>)"><input type="hidden" name="dir" value="<?php echo $_["dir"] ?>" id="dir"><input class="prettybutton" type="submit" id="file_upload_start" value="Upload (max <?php echo $_["uploadMaxHumanFilesize"];?>)" />&nbsp;<input class="prettybutton" type="button" id="file_upload_cancel" value="X" /><input type="file" name="file" id="fileSelector"><iframe id="file_upload_target" name="file_upload_target" src=""></iframe></form><form id="file_newfolder_form"><input type="text" class="prettybutton" name="file_newfolder_name" id="file_newfolder_name" value="New Folder" />&nbsp;<input class="prettybutton" type="button" id="file_newfolder_submit" name="file_newfolder_submit" value="OK" /></form><a href="" title="" class="download">Download</a><a href="" title="" class="share">Share</a><a href="" title="" class="delete">Delete</a>
+ <form id="file_upload_form" action="ajax/upload.php" method="post" enctype="multipart/form-data" target="file_upload_target">
+ <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_["uploadMaxFilesize"] ?>" id="max_upload">
+ <input type="hidden" class="max_human_file_size" value="(max <?php echo $_["uploadMaxHumanFilesize"]; ?>)">
+ <input type="hidden" name="dir" value="<?php echo $_["dir"] ?>" id="dir">
+ <div id='file_upload_wrapper'>
+ <input class="prettybutton" id='file_upload_filename' value="Upload (max <?php echo $_["uploadMaxHumanFilesize"];?>)"/>
+ <input class="prettybutton" type="file" id="file_upload_start" name='file'/>
+ </div>&nbsp;
+ <input class="prettybutton" type="button" id="file_upload_submit" name="file_upload_submit" value="OK" />
+ <iframe id="file_upload_target" name="file_upload_target" src=""></iframe>
+ </form>
+ <form id="file_newfolder_form">
+ <input type="text" class="prettybutton" name="file_newfolder_name" id="file_newfolder_name" value="New Folder" />&nbsp;
+ <input class="prettybutton" type="button" id="file_newfolder_submit" name="file_newfolder_submit" value="OK" />
+ </form>
+ <a href="" title="" class="download">Download</a>
+ <a href="" title="" class="share">Share</a>
+ <a href="" title="" class="delete">Delete</a>
</div>
<div id="file_action_panel">
</div>