summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-06-04 15:38:22 -0400
committerMalf Furious <m@lfurio.us>2017-06-04 15:38:22 -0400
commit4ba37714838e1f863c264d6bea7c7de75cd62514 (patch)
treec307b4b4eef658c5ca325017140701d94f956e3e /app
parentf43bd09b8287e3876b5a7396e6bb263c35e3972a (diff)
downloadscrott-4ba37714838e1f863c264d6bea7c7de75cd62514.tar.gz
scrott-4ba37714838e1f863c264d6bea7c7de75cd62514.zip
Define maxsize of attachment uploads
Value set to 512 megabytes.
Diffstat (limited to 'app')
-rw-r--r--app/class/mesg.class.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/class/mesg.class.php b/app/class/mesg.class.php
index f9766ca..fd541cd 100644
--- a/app/class/mesg.class.php
+++ b/app/class/mesg.class.php
@@ -23,6 +23,11 @@ require_once "class/pad.class.php";
class mesg extends object
{
/*
+ * Constants used for uploading attachments
+ */
+ public const ATTACH_MAXSIZE = 536870912; // 512Mb
+
+ /*
* Constructor
*/
public function __construct(?string $guid = NULL)