mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-29 11:24:11 +01:00
Contacts: Fix uploading photo.
This commit is contained in:
parent
8bf571f7e2
commit
d5acb5b9ed
@ -1395,6 +1395,7 @@ OC.Contacts = OC.Contacts || {
|
||||
var file = filelist[0];
|
||||
var target = $('#file_upload_target');
|
||||
var form = $('#file_upload_form');
|
||||
form.find('input[name="id"]').val(this.currentid);
|
||||
var totalSize=0;
|
||||
if(file.size > $('#max_upload').val()){
|
||||
OC.notify({
|
||||
|
@ -1,4 +1,5 @@
|
||||
<form class="float" id="file_upload_form" action="<?php print_unescaped(OCP\Util::linkTo('contacts', 'ajax/uploadphoto.php')); ?>" method="post" enctype="multipart/form-data" target="file_upload_target">
|
||||
<input type="hidden" name="id" value="">
|
||||
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>">
|
||||
<input type="hidden" name="MAX_FILE_SIZE" value="<?php p($_['uploadMaxFilesize']) ?>" id="max_upload">
|
||||
<input type="hidden" class="max_human_file_size" value="(max <?php p($_['uploadMaxHumanFilesize']); ?>)">
|
||||
|
Loading…
Reference in New Issue
Block a user