Add better documentation for `allowedFileTypes` on the AXAFileUpload
Currently, the documentation (Storybook) only states the following about allowedFileTypes:
In the
allowedFileTypesattribute, you can declare the allowed file types that a user can upload (ex: only pdf's are allowed). If the attribute is empty, every file type is allowed.
The user can only guess which format this attribute should have. According to mozilla file inputs accept both extensions (i.E. .docx) or MIME types (i.E. image/png). After some testing I found out only the latter was true for the AXAFileUpload. My suggestion is to change the documentation so the user understands how to correctly use this attribute.
My suggestion:
In the
allowedFileTypesattribute, you can declare the allowed file types that a user can upload (ex: only pdf's are allowed). If the attribute is empty, every file type is allowed. The allowed File types should be in the MIME Standard. The allowed file types should be separated by a,for exampletext/plain, image/jpeg, image/png.
Thank you @corsin-ragettli. We will update the docs.