diff --git a/mod/photos.php b/mod/photos.php
index 050a254af3..a8b63d12df 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -1139,7 +1139,11 @@ function photos_content(App $a)
'$preview' => DI::l10n()->t('Preview'),
'$loading' => DI::l10n()->t('Loading...'),
'$qcomment' => $qcomment,
- '$rand_num' => Crypto::randomDigits(12)
+ '$rand_num' => Crypto::randomDigits(12),
+ // Dropzone
+ //'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
+ // don't know, if DI::config.. does not work here, so it is set to a manual value
+ '$max_imagesize' => 100000,
]);
}
}
@@ -1194,7 +1198,11 @@ function photos_content(App $a)
'$submit' => DI::l10n()->t('Submit'),
'$preview' => DI::l10n()->t('Preview'),
'$qcomment' => $qcomment,
- '$rand_num' => Crypto::randomDigits(12)
+ '$rand_num' => Crypto::randomDigits(12),
+ // Dropzone
+ //'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
+ // don't know, if DI::config.. does not work here, so it is set to a manual value
+ '$max_imagesize' => 200000
]);
}
@@ -1268,7 +1276,11 @@ function photos_content(App $a)
'$submit' => DI::l10n()->t('Submit'),
'$preview' => DI::l10n()->t('Preview'),
'$qcomment' => $qcomment,
- '$rand_num' => Crypto::randomDigits(12)
+ '$rand_num' => Crypto::randomDigits(12),
+ // Dropzone
+ //'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
+ // don't know, if DI::config.. does not work here, so it is set to a manual value
+ '$max_imagesize' => 300000
]);
}
}
diff --git a/src/Content/Conversation.php b/src/Content/Conversation.php
index 249190b1ad..586b0bc540 100644
--- a/src/Content/Conversation.php
+++ b/src/Content/Conversation.php
@@ -408,6 +408,11 @@ class Conversation
'$compose_link_title' => $this->l10n->t('Open Compose page'),
'$always_open_compose' => $this->pConfig->get($this->session->getLocalUserId(), 'frio', 'always_open_compose', false),
+ // Dropzone
+ //'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
+ // DI::config.. does not work here, so it is set to a manual value
+ '$max_imagesize' => 600000,
+
]);
diff --git a/src/Module/Item/Compose.php b/src/Module/Item/Compose.php
index f53158b1f7..30e2aa9d6b 100644
--- a/src/Module/Item/Compose.php
+++ b/src/Module/Item/Compose.php
@@ -240,6 +240,9 @@ class Compose extends BaseModule
'deny_cid' => $contact_deny_list,
'deny_gid' => $group_deny_list,
]),
+
+ // Dropzone
+ '$max_imagesize' => DI::config()->get('system', 'maximagesize')
]);
}
}
diff --git a/src/Module/Post/Edit.php b/src/Module/Post/Edit.php
index 5fb339e179..87a0c1b9c6 100644
--- a/src/Module/Post/Edit.php
+++ b/src/Module/Post/Edit.php
@@ -182,6 +182,11 @@ class Edit extends BaseModule
'$shortpermset' => $this->t('Permissions'),
'$compose_link_title' => $this->t('Open Compose page'),
+ // Dropzone
+ //'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
+ // DI::config.. does not work here, so it is set to a manual value
+ '$max_imagesize' => 500000,
+
]);
return $output;
diff --git a/src/Object/Post.php b/src/Object/Post.php
index 17c0c1f68e..59617573e0 100644
--- a/src/Object/Post.php
+++ b/src/Object/Post.php
@@ -1068,7 +1068,9 @@ class Post
'$prompttext' => DI::l10n()->t('Please enter a image/video/audio/webpage URL:'),
'$preview' => DI::l10n()->t('Preview'),
'$indent' => $indent,
- '$rand_num' => Crypto::randomDigits(12)
+ '$rand_num' => Crypto::randomDigits(12),
+ // Dropzone
+ '$max_imagesize' => DI::config()->get('system', 'maximagesize'),
]);
}
diff --git a/view/templates/item/compose.tpl b/view/templates/item/compose.tpl
index 68ba2570ca..63755da352 100644
--- a/view/templates/item/compose.tpl
+++ b/view/templates/item/compose.tpl
@@ -97,9 +97,11 @@