diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-09-13 17:00:07 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-09-13 17:07:52 +0200 |
commit | 7854cf04eec68da83655a819f081d2f2e12f607b (patch) | |
tree | 2b4594179f17c534989e043b4c54ff655842249a /apps/files/templates | |
parent | d5ddbfb04562ba69a94d05413b931a4b378f0220 (diff) | |
download | nextcloud-server-7854cf04eec68da83655a819f081d2f2e12f607b.tar.gz nextcloud-server-7854cf04eec68da83655a819f081d2f2e12f607b.zip |
refactor upload js & html to always use only js to fill form data
Diffstat (limited to 'apps/files/templates')
-rw-r--r-- | apps/files/templates/index.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php index 29cb457cd5a..e481f89beb8 100644 --- a/apps/files/templates/index.php +++ b/apps/files/templates/index.php @@ -16,26 +16,18 @@ </div> <div id="upload" class="button" title="<?php p($l->t('Upload') . ' max. '.$_['uploadMaxHumanFilesize']) ?>"> - <form data-upload-id='1' - id="data-upload-form" - class="file_upload_form" - action="<?php print_unescaped(OCP\Util::linkTo('files', 'ajax/upload.php')); ?>" - method="post" - enctype="multipart/form-data" - target="file_upload_target_1"> <?php if($_['uploadMaxFilesize'] >= 0):?> <input type="hidden" name="MAX_FILE_SIZE" id="max_upload" value="<?php p($_['uploadMaxFilesize']) ?>"> <?php endif;?> <!-- Send the requesttoken, this is needed for older IE versions because they don't send the CSRF token via HTTP header in this case --> - <input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" id="requesttoken"> <input type="hidden" class="max_human_file_size" value="(max <?php p($_['uploadMaxHumanFilesize']); ?>)"> <input type="hidden" name="dir" value="<?php p($_['dir']) ?>" id="dir"> - <input type="file" id="file_upload_start" name='files[]'/> + <input type="file" id="file_upload_start" name='files[]' + data-url="<?php print_unescaped(OCP\Util::linkTo('files', 'ajax/upload.php')); ?>" /> <a href="#" class="svg"></a> - </form> </div> <?php if ($_['trash'] ): ?> <input id="trash" type="button" value="<?php p($l->t('Deleted files'));?>" class="button" <?php $_['trashEmpty'] ? p('disabled') : '' ?>></input> |