Issue Bug Closed

#21793Wrong and missleading calculation within a comment

Marc Richter 12/04/09, 11:45 updated 09/10/13, 09:04

Description

Hi there,

within the dummy – packages, there is a very missleading and simply wrong calculation about filesizes in the file dummy-4.x.x/typo3conf/extTables.php:

Line 20:
// Raise upload limit for images in ‘image’ content-elements to 10*1024 bytes = 1MB

1024 bytes are 1 KB. 10*1 KB are 10 KB, not 1 MB.

I tried to set the following limits:
$GLOBALS[’TCA’][’tt_content’][’columns’][’media’][’config’][’max_size’] = 75*1024;
$GLOBALS[’TCA’][’tt_content’][’columns’][’multimedia’][’config’][’max_size’] = 75*1024;
$GLOBALS[’TCA’][’tt_content’][’columns’][’image’][’config’][’max_size’] = 75*1024;

Now the limit for these filetypes are set to 75 MB . This leads me to the fact, that the value for these fields is taken in KB, not bytes:
75*1024 KB = 75 MB

So, the line has to be:
// Raise upload limit for images in ‘image’ content-elements to 10*1024 kilobytes = 10MB

See the attached Patchfile.

(issue imported from #M12922)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.