Issue Bug Closed

#60327Change sys_file.size type from INT to BIGINT

David Greiner 07/15/14, 11:12 updated 10/02/18, 11:52

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.

Reviews 2