Skip to content

Commit

Permalink
fix from suffix to prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Aug 16, 2014
1 parent e2f13a4 commit 2e6ee2b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions reference/constraints/File.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,15 @@ maxSize
~~~~~~~

.. versionadded:: 2.6
The suffixes ``Ki`` and ``Mi`` were introduced in Symfony 2.6.
The prefixes ``Ki`` and ``Mi`` were introduced in Symfony 2.6.

**type**: ``mixed``

If set, the size of the underlying file must be below this file size in order
to be valid. The size of the file can be given in one of the following formats:

+--------+-----------+-----------------+------+
| Suffix | Unit Name | value | e.g. |
| Prefix | Unit Name | value | e.g. |
+========+===========+=================+======+
| | byte | 1 byte | 4096 |
+--------+-----------+-----------------+------+
Expand All @@ -177,7 +177,7 @@ to be valid. The size of the file can be given in one of the following formats:
| Mi | mebibyte | 1,048,576 bytes | 8Mi |
+--------+-----------+-----------------+------+

For more information about the difference between binary and SI suffixes,
For more information about the difference between binary and SI prefixes,
see `Wikipedia: Binary prefix`_.

binaryFormat
Expand All @@ -188,12 +188,12 @@ binaryFormat

**type**: ``boolean`` **default**: ``null``

When ``true``, the sizes will be displayed in messages with binary suffixes
(KiB, MiB). When ``false``, the sizes will be displayed with SI suffixes (kB,
MB). When ``null``, then the binaryFormat will be guessed from the suffix
defined in the ``maxSize`` option.
When ``true``, the sizes will be displayed in messages with binary-prefixed
units (KiB, MiB). When ``false``, the sizes will be displayed with SI-prefixed
units (kB, MB). When ``null``, then the binaryFormat will be guessed from
the value defined in the ``maxSize`` option.

For more information about the difference between binary and SI suffixes,
For more information about the difference between binary and SI prefixes,
see `Wikipedia: Binary prefix`_.

mimeTypes
Expand Down

0 comments on commit 2e6ee2b

Please sign in to comment.