@@ -164,6 +164,8 @@ When true, the sizes will be displayed in messages with binary suffixes (KiB, Mi
164
164
When false, the sizes will be displayed with SI suffixes (kB, MB).
165
165
When null, then the binaryFormat will be guessed from the suffix defined in the maxSize option.
166
166
167
+ For more information about the difference between binary and SI suffixes, see `Wikipedia: Binary prefix `_.
168
+
167
169
maxSize
168
170
~~~~~~~
169
171
@@ -173,19 +175,21 @@ If set, the size of the underlying file must be below this file size in order
173
175
to be valid. The size of the file can be given in one of the following formats:
174
176
175
177
* **bytes **: To specify the ``maxSize `` in bytes, pass a value that is entirely
176
- numeric (e.g. ``4096 ``);
178
+ numeric (e.g. ``4096 ``).
177
179
178
180
* **kilobytes **: To specify the ``maxSize `` in kilobytes, pass a number and
179
- suffix it with a "k" (e.g. ``200k ``);
181
+ suffix it with a "k" (e.g. ``200k ``); 1k = 1 000 bytes.
180
182
181
183
* **megabytes **: To specify the ``maxSize `` in megabytes, pass a number and
182
- suffix it with a "M" (e.g. ``4M ``).
184
+ suffix it with a "M" (e.g. ``4M ``); 1M = 1 000 000 bytes .
183
185
184
186
* **kibibytes **: To specify the ``maxSize `` in kibibytes, pass a number and
185
- suffix it with a "Ki" (e.g. ``600Ki ``);
187
+ suffix it with a "Ki" (e.g. ``600Ki ``); 1Ki = 1 024 bytes.
186
188
187
189
* **mebibytes **: To specify the ``maxSize `` in mebibytes, pass a number and
188
- suffix it with a "Mi" (e.g. ``8Mi ``).
190
+ suffix it with a "Mi" (e.g. ``8Mi ``); 1Mi = 1 048 576 bytes.
191
+
192
+ For more information about the difference between binary and SI suffixes, see `Wikipedia: Binary prefix `_.
189
193
190
194
mimeTypes
191
195
~~~~~~~~~
@@ -257,3 +261,4 @@ to disk.
257
261
258
262
259
263
.. _`IANA website` : http://www.iana.org/assignments/media-types/index.html
264
+ .. _`Wikipedia: Binary prefix` : http://en.wikipedia.org/wiki/Binary_prefix
0 commit comments