@@ -156,15 +156,15 @@ maxSize
156
156
~~~~~~~
157
157
158
158
.. versionadded :: 2.6
159
- The suffixes ``Ki `` and ``Mi `` were introduced in Symfony 2.6.
159
+ The prefixes ``Ki `` and ``Mi `` were introduced in Symfony 2.6.
160
160
161
161
**type **: ``mixed ``
162
162
163
163
If set, the size of the underlying file must be below this file size in order
164
164
to be valid. The size of the file can be given in one of the following formats:
165
165
166
166
+--------+-----------+-----------------+------+
167
- | Suffix | Unit Name | value | e.g. |
167
+ | Prefix | Unit Name | value | e.g. |
168
168
+========+===========+=================+======+
169
169
| | byte | 1 byte | 4096 |
170
170
+--------+-----------+-----------------+------+
@@ -177,7 +177,7 @@ to be valid. The size of the file can be given in one of the following formats:
177
177
| Mi | mebibyte | 1,048,576 bytes | 8Mi |
178
178
+--------+-----------+-----------------+------+
179
179
180
- For more information about the difference between binary and SI suffixes ,
180
+ For more information about the difference between binary and SI prefixes ,
181
181
see `Wikipedia: Binary prefix `_.
182
182
183
183
binaryFormat
@@ -188,12 +188,12 @@ binaryFormat
188
188
189
189
**type **: ``boolean `` **default **: ``null ``
190
190
191
- When ``true ``, the sizes will be displayed in messages with binary suffixes
192
- (KiB, MiB). When ``false ``, the sizes will be displayed with SI suffixes (kB,
193
- MB). When ``null ``, then the binaryFormat will be guessed from the suffix
194
- defined in the ``maxSize `` option.
191
+ When ``true ``, the sizes will be displayed in messages with binary-prefixed
192
+ units (KiB, MiB). When ``false ``, the sizes will be displayed with SI-prefixed
193
+ units (kB, MB). When ``null ``, then the binaryFormat will be guessed from
194
+ the value defined in the ``maxSize `` option.
195
195
196
- For more information about the difference between binary and SI suffixes ,
196
+ For more information about the difference between binary and SI prefixes ,
197
197
see `Wikipedia: Binary prefix `_.
198
198
199
199
mimeTypes
0 commit comments