Allowed formats
Define your own list of permitted formats
Last updated
Define your own list of permitted formats
Last updated
If you want to allow all image formats, you can use image/*
. The same applies to video, application, audio, font, etc.
Users will then be prompted to select "any image file" instead of "JPG or PNG files".
Different file formats and wildcards can be combined in the allow list.
When you specify a list of allowed formats, an automatic text is generated that will appear in the userβs UI, indicating which image formats they can upload. For example, βJPG, PNG, or GIF.β However, you can choose to provide your own text, such as βCute cat pics only.β
The generated text is created based on the allowed MIME types. By default, the most popular format for each MIME type is selected and displayed. However, some MIME types encompass more than one file extension. You can choose to display just one, the entire group of file extensions, a custom text, or nothing at all.
auto (default)
Suggest the most important extension for the MIME type in text (the other extensions of the MIME will be valid as well)
JPG
auto-full
Suggest the entire list of extensions for the MIME Type
.jpe, .jpeg, .jpg, .pjpg, .jfif, .jfif-tbnl, .jif
custom
Personalized text
Cute cat pics only!
off
Hide the text