---
title: "Feature: #77336 - Allow passing an own unit collection to BytesViewHelper"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-77336"
source: "Changelog/8.3/Feature-77336-AllowPassingAnOwnUnitCollectionToByteViewHelper.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Feature: #77336 - Allow passing an own unit collection to BytesViewHelper

See [forge#77336](https://forge.typo3.org/issues/77336)

## Description

The BytesViewHelper accepts a new parameter named `units`. It must be a comma separated list of units.

First example: Use the translation VH

```none
{fileSize -> f:format.bytes(units: '{f:translate(\'viewhelper.format.bytes.units\', \'fluid\')}'}
```

Second example: Provide a plain list

```html
<f:format.bytes units="byte, kilo, mega, husel, pusel">{size}</f:format.bytes>
```

results in the currently used collection, provided by the core.

## Impact

A custom list of units can be passed to the ViewHelper and will be used for formatting. The existing behaviour has not changed.
