File Upload Size Limitation
How do I change the file and picture upload image size maximum to higher than 2 MB?
-
- · Billy
- ·
This may be controlled by your web host. A lot of shared hosting plans have a max 2mb upload limit. Some web hosts let you change that. Some do not. You can contact your hosting provider and ask if they can change it. There are ways to change it yourself with a php.ini file and/or .htaccess file, but, it all depends on your web host.
-
- · George Sp
- ·
hi, have similar question: is the max upload size limit set in Una, or is it totally dependent on my hosting? yesterday I uploaded 4.5mb file to my user cover, so if others are able to upload such large files the site will become slow very fast.
Is there an option to limit max size, or I have to do that in htaccess?
-
-
·
LeonidS
- ·
Hello George Sp!
In Studio panel->Permissions system app you may find 2 columns "Max File Size" and "Max Files". Just press "edit" icon near wished level and setup this limits in appeared popup (Max File Size in Megabytes), then press "Save".
With the best regards, Leonid
-
·
LeonidS
-
- · George Sp
- ·
very nice, thank you
-
-
·
LeonidS
-
·
In reply to George Sp
- ·
You are welcome, George!
-
·
LeonidS
-
- · vavilon
-
·
In reply to LeonidS
- ·
This is about "how to reduce limit". How to increase? from 2MB to, say, 5MB?
-
-
·
LeonidS
- ·
Hello vavilon!
As shown above in "Permissions system app". But this parameters can't be larger than "post_max_size" and "upload_max_filesize" of your server.
With the best regards, Leonid
-
·
LeonidS
-
- · mrochek
- ·
On the upload form the text still says max file size of 2MB after changing on PHP server and in Studio-->permissions. Any ideas on how to change this?
-
-
·
LeonidS
- ·
Hello mrochek!
You need to be sure that your site uses the actual PHP.ini for this server. What values are shown in Studio->Dashboard->Host Tools->server audit area. What values have now "post_max_size " and "upload_max_filesize " parameters?
-
·
LeonidS
-
- · mrochek
-
·
In reply to LeonidS
- ·
- post_max_size = 8388608 - OK
- upload_max_filesize = 2097152 - OK
This is different from the PHP settings on the server. How do I change this? the php.ini file?
-
- · mrochek
- ·
I resolved it by changing the file upload size variable in the php.ini file. Thanks!
-
-
- · mrochek
-
·
In reply to mrochek
- ·
Nevermind, Leonid. I found the problem: The setting in my cPanel for Max Post Size was different than my php.ini file. Once I changed that, the dialogue box picked up my UNA user setting. Thanks!
-
- · mrochek
-
·
In reply to mrochek
- ·
-
- · mrochek
-
·
In reply to mrochek
- ·
So it turns out that my CPanel php settings page showed 128M for the Max_post_size, but the php.ini file showed 8M. Once I updated the php.ini file the upload was allowed to continue. Thanks to LeonidS for asking me for the server audit details since that alerted me to the discrepancy between the CPanel page and php.ini file.
-
- · PopAllure
- ·
I followed this thread and was able to adjust permissions and accessed php.ini file. My upload now shows whatever limit i set in permission (instead of just 2mb). However, I am stuck at the point describe above where the video seems to upload but then nothing. I have tried adjusting the number in cpan for php.ini but nothing has worked. Right now I have what you see below and I have the file size in permissions set to 20mb.
Would greatly appreciate any help! I am using version 11.0.4 via TMD.
- memory_limit = 268435456 - OK
- post_max_size = 134217728 - OK
- upload_max_filesize = 57671680 - OK
-
-
·
LeonidS
-
·
In reply to PopAllure
- ·
Hello PopAllure !
Sometimes the mentioned variables may not depend from the php.ini files settings. You'd better ask your hosting provider to specify this part.
-
·
LeonidS
-
- · PopAllure
-
·
In reply to LeonidS
- ·
Thanks for the reply.