Media file size

alt=
DannyA
@dannya
10 years ago
584 posts
I've increased the max file size in php.ini (i have some large uncompressed files that need to be uploaded. However still getting upload limit of 64Mb. How do i increase the limit in Jamroom?
updated by @dannya: 08/16/14 10:20:07AM
douglas
@douglas
10 years ago
2,791 posts
You should be able to change the max upload size per quota in the jrCore modules Quota Config section.

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
alt=
DannyA
@dannya
10 years ago
584 posts
Is it possible to go above 64 mb? I am working with long mixes and uncompressed audio. 64 mb is definitely not enough. I can't imagine it would allow for much video either.
brian
@brian
10 years ago
10,148 posts
andersda:
Is it possible to go above 64 mb? I am working with long mixes and uncompressed audio. 64 mb is definitely not enough. I can't imagine it would allow for much video either.

You can go as high as you want (I think 4GB is as large as you can set PHP to, which would result in a 1GB allowed upload).

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
10 years ago
584 posts
This is what I'm saying. I've already updated the php.ini file to 2G but the jamroom quota config still limits me to 64MB
brian
@brian
10 years ago
10,148 posts
Try running an integrity check, and also check your server check to be sure that PHP is showing a 2G allowed size - you may need to restart your web server for the changes to take effect.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
10 years ago
584 posts
Verified post max file size.
Restarted web server
Ran integrity check

Jamroom still shows 64MB max
michael
@michael
10 years ago
7,718 posts
"How do I increase PHPs upload limit"
http://www.jamroom.net/the-jamroom-network/documentation/problems/748/how-do-i-increase-phps-upload-limit

* upload_max_filesize
* memory_limit
* post_max_size

Did you get all 3 changed before you restarted the webserver?
alt=
DannyA
@dannya
10 years ago
584 posts
yes. I have re-started multiple times
michael
@michael
10 years ago
7,718 posts
Post your php.ini file here inside a [ code ] [ /code ] block.
alt=
DannyA
@dannya
10 years ago
584 posts
(snipped)
michael
@michael
10 years ago
7,718 posts
try using M rather than G.

I see in the manual that its reads:
Quote: The available options are K (for Kilobytes), M (for Megabytes) and G (for Gigabytes; available since PHP 5.1.0), these are case insensitive.
http://www.php.net/manual/en/faq.using.php#faq.using.shorthandbytes

But give it a go as

upload_max_filesize = 1024M
memory_limit = 1024M
post_max_size = 1024M

And also make sure that the php.ini that you are editing is the one that is in use by the server. Sometimes servers that use control panels have alternative php.ini files.

You can check that your changes are taking effect by putting this in a php file and view it in a browser:
<?php
phpinfo();
alt=
DannyA
@dannya
10 years ago
584 posts
I changed the settings to 1024M
You can see settings here
https://dev.xtraxx.com/phpinfo.php

Reset server, integrity check.
Max file size is still 256M
brian
@brian
10 years ago
10,148 posts
andersda:
I changed the settings to 1024M
You can see settings here
https://dev.xtraxx.com/phpinfo.php

Reset server, integrity check.
Max file size is still 256M

That is correct - a setting of 1024M will result in a max upload size of 256M (1/4) - the conversion server needs the extra memory overhead.

Set it to 2048M for 512M, etc.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
10 years ago
584 posts
So if i indeed want people to upload 1024M files i need 4096M of actual memory?
brian
@brian
10 years ago
10,148 posts
andersda:
So if i indeed want people to upload 1024M files i need 4096M of actual memory?

No - that's just how much it might use if the conversion server needs it. It's not going to grab 4096M of RAM - it will only use what is needed, and will use a lot less if there is no conversion going on.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 07/08/14 12:07:13PM

Tags