Project

General

Profile

Actions

Bug #60327

closed

Change sys_file.size type from INT to BIGINT

Added by David Greiner almost 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2014-07-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hi.

Because type for sys_file.size is "INT" max file size is limited to 2147483647 Byte (2GB) by storing entries in table sys_file.

Therefore wrong values are displayed in the filelist for files bigger than 2 GigaByte.

Displaying file sizes in the frontend requires using something like

filesize("physical/path/to/file/file.ext");

The much better way is using something like

\TYPO3\CMS\Core\Utility\GeneralUtility::formatSize( $file->getOriginalResource()->getSize(), ' | KB| MB| GB' )

but this is not possible for files bigger than 2 Gigabyte as I explained.

Actions #1

Updated by Gerrit Code Review almost 10 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/31737

Actions #2

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/31737

Actions #3

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/31752

Actions #4

Updated by Stefan Neufeind over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF