@@ -80,7 +80,6 @@ below a certain file size and a valid PDF, add the following:
80
80
mimeTypes : [application/pdf, application/x-pdf]
81
81
mimeTypesMessage : Please upload a valid PDF
82
82
83
-
84
83
.. code-block :: php-annotations
85
84
86
85
// 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
161
160
to be valid. The size of the file can be given in one of the following formats:
162
161
163
162
* **bytes **: To specify the ``maxSize `` in bytes, pass a value that is entirely
164
- numeric (e.g. ``4096 ``).
163
+ numeric (e.g. ``4096 ``);
165
164
166
165
* **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;
168
167
169
168
* **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;
171
170
172
171
* **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;
174
173
175
174
* **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.
177
176
178
177
For more information about the difference between binary and SI suffixes,
179
178
see `Wikipedia: Binary prefix `_.
0 commit comments