ElkArte Community

Title: attachments size problem
Post by: gevv on May 30, 2016, 02:26:39 pm
Hi,

Attachment Settings  Max attachment size  3024 kb

Post replay page Restrictions: 65,536 KB 
Title: Re: attachments size problem
Post by: emanuele on May 30, 2016, 03:10:06 pm
What language are you using?
Title: Re: attachments size problem
Post by: gevv on May 30, 2016, 03:22:00 pm
Turkish

(my forum wedge to ElkArte convert)
Title: Re: attachments size problem
Post by: emanuele on May 30, 2016, 03:55:32 pm
Try to change both values (to 3025 for example) and the put again the 3024.
Title: Re: attachments size problem
Post by: gevv on May 31, 2016, 03:58:31 am
Hi,

I tried the problem continues

I am sending login information admin

thanks
Title: Re: attachments size problem
Post by: emanuele on May 31, 2016, 04:50:30 am
Could you have a look in your index.turkish.php file what is the value of $txt['number_format']?

In case, would you mind trying with the latest version of the translation? http://translations.elkarte.net/
Title: Re: attachments size problem
Post by: gevv on May 31, 2016, 01:30:35 pm
// Number format.
$txt['number_format'] = '1,234.00';

+ upload the latest version of the translation
Title: Re: attachments size problem
Post by: emanuele on May 31, 2016, 03:15:50 pm
And the sizes still show the wrong values?
What if you change to for example 1024? Do you see the 1 MB or still the 65 MB?

Sorry if I "force" you to do the tests even though you sent me the admin account data, but I really prefer not to step in unless is absolutely necessary. ;)
Title: Re: attachments size problem
Post by: gevv on May 31, 2016, 03:30:03 pm
yes I changed (1024) the problem continues
Title: Re: attachments size problem
Post by: emanuele on May 31, 2016, 05:54:29 pm
Let's try another thing:
Code: [Select]
<?php
global $txt;

require_once('SSI.php');
loadLanguage('Post');

echo 'first: ' . sprintf($txt['attach_restrict_attachmentPostLimit'], comma_format($modSettings['attachmentPostLimit'], 0)) . '<br>';

echo 'second: ' . sprintf($txt['attach_restrict_attachmentPostLimit'], comma_format(1024, 0)) . '<br>';

echo 'third: ' . sprintf($txt['attach_restrict_attachmentPostLimit'], '1024') . '<br>';

put this code into a file (e.g test.php), then upload it to your forum directory (where is SSI.php), and finally reach the file from the browser, what do you see?
Title: Re: attachments size problem
Post by: gevv on June 01, 2016, 04:09:52 am
the results

Code: [Select]
first: toplam boyut en fazla 3,024 KB
second: toplam boyut en fazla 1,024 KB
third: toplam boyut en fazla 1024 KB
Title: Re: attachments size problem
Post by: Spuds on June 06, 2016, 06:42:17 pm
Are you using the attachment image resize addon? 

That addon will change the form values to the server max so they can be uploaded and then the admin values are enforced during the resize.