React-admin: FileInput does not display error on validation error

Created on 4 Jul 2017  路  4Comments  路  Source: marmelab/react-admin

ie. when i put required on FileInput
<FileInput source="files" label="common.file" accept={allowedFiles} validate={[required]}> <RestedFileField source="url" title="name" /> </FileInput>

the form is not sent but does not display any error

(same with ImageInput)

bug

Most helpful comment

Is this bug back? I seem to be having a similar issue; the form does not send but there is no displayed error message. Looking at the changes for #949 the errorText in Labeled.js seems to have been removed at some point.

All 4 comments

Is this bug back? I seem to be having a similar issue; the form does not send but there is no displayed error message. Looking at the changes for #949 the errorText in Labeled.js seems to have been removed at some point.

Having the same issue.
Also should this even work for the maxSize prop? Or do I have to find another way of displaying that the selected file is too large?

Having this issue too, it looks like meta or similar is not being passed around correctly? The validation function runs but the UI doesn't indicate an error (but the form will not submit). On the latest v2.2.2

This problem is still present in the 2.4.0 version

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pixelscripter picture pixelscripter  路  3Comments

phacks picture phacks  路  3Comments

9747749366 picture 9747749366  路  3Comments

aserrallerios picture aserrallerios  路  3Comments

kdabir picture kdabir  路  3Comments