Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c31f7f6

Browse files
committed
Added links to the IANA website for a reference of existing mime-types for the file and image constraints.
1 parent f204336 commit c31f7f6

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

reference/constraints/File.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ If set, the validator will check that the mime type of the underlying file
171171
is equal to the given mime type (if a string) or exists in the collection
172172
of given mime types (if an array).
173173

174+
You can find a list of existing mime types on the `IANA website`_
175+
174176
maxSizeMessage
175177
~~~~~~~~~~~~~~
176178

@@ -226,4 +228,7 @@ uploadErrorMessage
226228

227229
The message that is displayed if the uploaded file could not be uploaded
228230
for some unknown reason, such as the file upload failed or it couldn't be written
229-
to disk.
231+
to disk.
232+
233+
234+
.. _`IANA website`: http://www.iana.org/assignments/media-types/index.html

reference/constraints/Image.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ mimeTypes
1919

2020
**type**: ``array`` or ``string`` **default**: an array of jpg, gif and png image mime types
2121

22+
You can find a list of existing image mime types on the `IANA website`_
23+
2224
mimeTypesMessage
2325
~~~~~~~~~~~~~~~~
2426

25-
**type**: ``string`` **default**: ``This file is not a valid image``
27+
**type**: ``string`` **default**: ``This file is not a valid image``
28+
29+
30+
.. _`IANA website`: http://www.iana.org/assignments/media-types/image/index.html

0 commit comments

Comments
 (0)