Max size of media files

258 views
Skip to first unread message

Alexander Shvaryov

unread,
Dec 14, 2012, 3:45:42 PM12/14/12
to 2600h...@googlegroups.com
Hello guys!

Can anybody tell me where to configure the maximum size of uploaded media files?
When I load the file more than 5 MB get the message "content_length.maximum: Value must be at most 5,242,880," but don't know how to change the maximum file size.

Thank you!

Kirill Sysoev

unread,
Dec 14, 2012, 3:50:52 PM12/14/12
to 2600h...@googlegroups.com
Hi Aleksandr 

I usually do the next:

Grep recursively kazoo directory for this message. See which erlang file it refers to.
And database where this variable resides usually could be found in this file

May be it could help


суббота, 15 декабря 2012 г. пользователь Alexander Shvaryov писал:

James Aimonetti

unread,
Dec 14, 2012, 4:00:34 PM12/14/12
to 2600h...@googlegroups.com
Hi Aleksandr,

This limit is in the media schema document. You can look in the
"system_schemas" database for the "media" doc. Under the "content_length" key,
you should see the maximum attribute set to 5MB. Increase to your desired
filesize.

Hope that helps!
--
James Aimonetti
Distributed Systems Engineer / DJ MC_

2600hz | http://2600hz.com
sip:ja...@2600hz.com
tel: 415.886.7905
signature.asc

Alexander Shvaryov

unread,
Dec 19, 2012, 3:25:28 AM12/19/12
to 2600h...@googlegroups.com, ja...@2600hz.com
I completely forgot to say - "Thanks guys!" )

--------------------
Alexander Shvaryov

channdy keo

unread,
May 7, 2014, 12:56:03 AM5/7/14
to 2600h...@googlegroups.com, ja...@2600hz.com
Hi dev,

How to reload the system schema after increasing media max size? I have tried below commend but did not help

/opt/kazoo/utils/sup/sup whapps_config flush
/opt/kazoo/utils/sup/sup wh_cache flush
/opt/kazoo/utils/sup/sup stepswitch_maintenance reload_resources

James Aimonetti

unread,
May 7, 2014, 1:14:04 AM5/7/14
to 2600h...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

sup couch_mgr flush_cache_docs system_schemas
- --
James Aimonetti
Lead Systems Architect / Impressionable Scallywag
"I thought I fixed that"

2600Hz | http://2600hz.com
sip:ja...@2600hz.com
tel:415.886.7905
irc:mc_ @ freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlNpwRwACgkQ54NxaUq7OmDSjgD6AtNaJ2M4VlhEDKn67yIJNYcS
aeLtwLNxRQWr1YTR8xoA/RfU61LU3AMMZ3zTgQdKpKP3FgaoHFDnnBsNr6mdEuSk
=5CJa
-----END PGP SIGNATURE-----

Geoff Thomas

unread,
Jun 28, 2015, 5:49:57 PM6/28/15
to 2600h...@googlegroups.com
So after upgrading to 3.20 we are having issues uploading media that is a 10 MB file. I have upped the max length setting in system schemas for media to 15 MB, but getting an error now when uploading saying "Schema Error: file.maxLength: String must not be more than 8000000 characters". That is a bit different then the error we got before updating the schema before, is there a setting somewhere else that I am missing now? Not seeing anything in the schema setting a string length to 800000 characters anywhere...

James Aimonetti

unread,
Jul 10, 2015, 11:50:47 AM7/10/15
to 2600h...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

First, that schema error message is bad; should not be String but
Filesize.

Second, this is a bit of indirection; the max filesize is determined
by the system_config/crossbar doc, under the 'max_upload_size' key.
Try changing the limit there:

sup whapps_config set_default crossbar max_upload_size {SIZE_IN_BYTES}

And try your upload again.

- --
James Aimonetti
Lead Systems Architect / Impressionable Scallywag
"I thought I fixed that"

2600Hz | http://2600hz.com
sip:ja...@2600hz.com
tel:415.886.7905
irc:mc_ @ freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJVn+nQAAoJENTKa+JPXCVgtsEH/RsdwIa7Rmt4W3R/etdUYTRC
vqh5fasMgnGzEunDJuo8avVlGu9NzJKTEPRXlH//bPJ2/WoMe7RVZWJdkI0aO/4w
DgWspo3cIIQr1y7Vcga/0KHh4aiyZE5y3XK6vRKl06BJqMJn8PugmeK4NDyvvhUu
7pStlowQhZ9cyrO/sBYpCBQcTunHYAPZANamAa0jtoYtEqxPRjiUTn01hN5bB/qE
u9JTaxjgJYGHBwfpJ6QdpYajhw7fW6Loq1dgMH5X1E1wuv21T2guGJXSxbfECEo2
bIVzso1s8s298iqp5IIfkO86X3wl5LPGOAsyeXNKaMM/uBPJRBqm8urv0UBb+18=
=HSzu
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages