Skip to content

Commit b414f5c

Browse files
author
Jérémy Derussé
committed
Use comma as thousands separator
1 parent 7dcd7c3 commit b414f5c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

reference/constraints/File.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ below a certain file size and a valid PDF, add the following:
8080
mimeTypes: [application/pdf, application/x-pdf]
8181
mimeTypesMessage: Please upload a valid PDF
8282
83-
8483
.. code-block:: php-annotations
8584
8685
// src/Acme/BlogBundle/Entity/Author.php
@@ -161,19 +160,19 @@ If set, the size of the underlying file must be below this file size in order
161160
to be valid. The size of the file can be given in one of the following formats:
162161

163162
* **bytes**: To specify the ``maxSize`` in bytes, pass a value that is entirely
164-
numeric (e.g. ``4096``).
163+
numeric (e.g. ``4096``);
165164

166165
* **kilobytes**: To specify the ``maxSize`` in kilobytes, pass a number and
167-
suffix it with a "k" (e.g. ``200k``); 1k = 1 000 bytes.
166+
suffix it with a "k" (e.g. ``200k``); 1k = 1,000 bytes;
168167

169168
* **megabytes**: To specify the ``maxSize`` in megabytes, pass a number and
170-
suffix it with a "M" (e.g. ``4M``); 1M = 1 000 000 bytes.
169+
suffix it with a "M" (e.g. ``4M``); 1M = 1,000,000 bytes;
171170

172171
* **kibibytes**: To specify the ``maxSize`` in kibibytes, pass a number and
173-
suffix it with a "Ki" (e.g. ``600Ki``); 1Ki = 1 024 bytes.
172+
suffix it with a "Ki" (e.g. ``600Ki``); 1Ki = 1,024 bytes;
174173

175174
* **mebibytes**: To specify the ``maxSize`` in mebibytes, pass a number and
176-
suffix it with a "Mi" (e.g. ``8Mi``); 1Mi = 1 048 576 bytes.
175+
suffix it with a "Mi" (e.g. ``8Mi``); 1Mi = 1,048,576 bytes.
177176

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

0 commit comments

Comments
 (0)