Project

General

Profile

Actions

Bug #21793

closed

Wrong and missleading calculation within a comment

Added by Marc Richter over 14 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-12-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

extTables.patch (823 Bytes) extTables.patch Administrator Admin, 2009-12-04 11:45
patch_extTables.php.patch (814 Bytes) patch_extTables.php.patch Administrator Admin, 2009-12-04 11:50
Actions #1

Updated by Marc Richter over 14 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.

Actions #2

Updated by Alexander Opitz about 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)?

Actions #3

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.

Actions

Also available in: Atom PDF