Bug #21793
closedWrong and missleading calculation within a comment
0%
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)
Files
Updated by Marc Richter almost 15 years ago
Sorry, I was wrong. The values are taken in bytes, only the calculation is wrong.
So the line has to be:
// Raise upload limit for images in 'image' content-elements to 10*1024 bytes = 10 KB
See second attached patchfile.
Sorry for the first wrong description.
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
- Is Regression set to No
No feedback for over 90 days.