Skip to content

Commit e3acdc5

Browse files
author
Jérémy Derussé
committed
Support MaxSize in KiB and MiB
1 parent 855f959 commit e3acdc5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

reference/constraints/File.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,16 @@ to be valid. The size of the file can be given in one of the following formats:
163163
numeric (e.g. ``4096``);
164164

165165
* **kilobytes**: To specify the ``maxSize`` in kilobytes, pass a number and
166-
suffix it with a lowercase "k" (e.g. ``200k``);
166+
suffix it with a "k" (e.g. ``200k``);
167167

168168
* **megabytes**: To specify the ``maxSize`` in megabytes, pass a number and
169-
suffix it with a capital "M" (e.g. ``4M``).
169+
suffix it with a "M" (e.g. ``4M``).
170+
171+
* **kibibytes**: To specify the ``maxSize`` in kibibytes, pass a number and
172+
suffix it with a "Ki" (e.g. ``600Ki``);
173+
174+
* **mebibytes**: To specify the ``maxSize`` in mebibytes, pass a number and
175+
suffix it with a "Mi" (e.g. ``8Mi``).
170176

171177
mimeTypes
172178
~~~~~~~~~

0 commit comments

Comments
 (0)