summaryrefslogtreecommitdiffstats
path: root/apps/files/templates
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2012-10-08 10:28:29 +0200
committerBjörn Schießle <schiessle@owncloud.com>2012-10-08 10:28:29 +0200
commit4dba91838ff24202fa7e184469074b61a4872d1e (patch)
tree0f40e534fc66ec29b07fcea289849cfe1faa0fd9 /apps/files/templates
parentb934668b9e260866a465d36fef565aedf8f40339 (diff)
downloadnextcloud-server-4dba91838ff24202fa7e184469074b61a4872d1e.tar.gz
nextcloud-server-4dba91838ff24202fa7e184469074b61a4872d1e.zip
add ID to upload form and check if ID exist to avoid loading invalid javascript code for read-only views.
Diffstat (limited to 'apps/files/templates')
-rw-r--r--apps/files/templates/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index aff484f0a7a..d49f2f4d5d3 100644
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -12,7 +12,7 @@
</ul>
</div>
<div class="file_upload_wrapper svg">
- <form data-upload-id='1' class="file_upload_form" action="<?php echo OCP\Util::linkTo('files', 'ajax/upload.php'); ?>" method="post" enctype="multipart/form-data" target="file_upload_target_1">
+ <form data-upload-id='1' id="data-upload-form" class="file_upload_form" action="<?php echo OCP\Util::linkTo('files', 'ajax/upload.php'); ?>" method="post" enctype="multipart/form-data" target="file_upload_target_1">
<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">