Max file upload size dont change

admin2102

New Member
YetiShare User
Jan 15, 2013
85
0
0
On the front page under select files to upload there is a text that shows the max size of file to upload Mine is showing 500Meg but I have changed the max file size in settings for the Premium user to 1 gig but it shows only 500 mb it should get the info from the settings and change but mine isnt changing? Any clues why?
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
Are you sure the database is being updated with the correct filesize?

Whats the result of this MySQL query?

Code:
SELECT * FROM `site_config` WHERE `config_key` = 'premium_user_max_upload_filesize';
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
In index.php do you have the following lines of code?

Code:
if ($Auth->level != 'free user')
    {
        $maxUploadSize = SITE_CONFIG_PREMIUM_USER_MAX_UPLOAD_FILESIZE;
        $maxPermittedUrls = (int)SITE_CONFIG_PREMIUM_USER_MAX_REMOTE_URLS;
    }
Code:
$phpMaxSize  = getPHPMaxUpload();
if ($phpMaxSize < $maxUploadSize)
{
    $maxUploadSize = $phpMaxSize;
}
Code:
<?php echo t('max_file_size', 'Max file size'); ?>: <?php echo formatSize($maxUploadSize); ?>
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
I think I had an account there when I was helping you over at yetisharemods, if possible can you PM the account details and I will take a look to see if I can find the problem for you :)
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
Delete the php.ini located in your public_html folder where index.php is

http://storeit.pro/php.ini < that is limiting you to 500MB uploads

Code:
upload_max_filesize = "500M"
post_max_size = "500M"