aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/photos_upload.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-12-03 17:22:18 -0800
committerzotlabs <mike@macgirvin.com>2017-12-03 17:22:18 -0800
commitba547c22571d90bc8757e45643463d53d9cae2e6 (patch)
treee08de6b81f1e09378c05b095d6d9fd3d6eec0073 /view/tpl/photos_upload.tpl
parentd5763ba476290fca6083c7b415a4ae4d177919cf (diff)
downloadvolse-hubzilla-ba547c22571d90bc8757e45643463d53d9cae2e6.tar.gz
volse-hubzilla-ba547c22571d90bc8757e45643463d53d9cae2e6.tar.bz2
volse-hubzilla-ba547c22571d90bc8757e45643463d53d9cae2e6.zip
chunked uploads for photos page
Diffstat (limited to 'view/tpl/photos_upload.tpl')
-rwxr-xr-xview/tpl/photos_upload.tpl11
1 files changed, 6 insertions, 5 deletions
diff --git a/view/tpl/photos_upload.tpl b/view/tpl/photos_upload.tpl
index 46b1d3fd0..ea173049b 100755
--- a/view/tpl/photos_upload.tpl
+++ b/view/tpl/photos_upload.tpl
@@ -1,6 +1,7 @@
<div id="photo-upload-form">
+ <input id="invisible-photos-file-upload" type="file" name="files" style="visibility:hidden;position:absolute;top:-50;left:-50;width:0;height:0;" multiple data-nickname='{{$nickname}}' >
<div class="section-content-tools-wrapper">
- <form action="photos/{{$nickname}}" enctype="multipart/form-data" method="post" name="photos-upload-form" id="photos-upload-form" class="acl-form" data-form_id="photos-upload-form" data-allow_cid='{{$allow_cid}}' data-allow_gid='{{$allow_gid}}' data-deny_cid='{{$deny_cid}}' data-deny_gid='{{$deny_gid}}'>
+ <form action="#" enctype="multipart/form-data" method="post" name="photos-upload-form" id="photos-upload-form" class="acl-form" data-form_id="photos-upload-form" data-allow_cid='{{$allow_cid}}' data-allow_gid='{{$allow_gid}}' data-deny_cid='{{$deny_cid}}' data-deny_gid='{{$deny_gid}}'>
<input type="hidden" id="photos-upload-source" name="source" value="photos" />
<div class="form-group">
@@ -15,9 +16,9 @@
</datalist>
</div>
{{if $default}}
- <div class="form-group">
+ <!-- div class="form-group">
<input id="photos-upload-choose" type="file" name="userfile" />
- </div>
+ </div -->
{{include file="field_input.tpl" field=$caption}}
{{include file="field_checkbox.tpl" field=$visible}}
<div id="body-textarea">
@@ -30,7 +31,7 @@
<i id="jot-perms-icon" class="fa fa-{{$lockstate}}"></i>
</button>
{{/if}}
- <button id="dbtn-submit" class="btn btn-primary btn-sm" type="submit" name="submit" >{{$submit}}</button>
+ <button id="dbtn-submit" class="btn btn-primary btn-sm">{{$submit}}</button>
</div>
</div>
@@ -57,7 +58,7 @@
</form>
</div>
<table id="upload-index">
- <tr id="new-upload-progress-bar--1"></tr> {{* this is needed to append the upload files in the right order *}}
+ <tr id="new-upload-progress-bar-1"></tr> {{* this is needed to append the upload files in the right order *}}
</table>
{{$aclselect}}
<div id="photos-upload-end" class="clear"></div>