-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating resource with attached photos - field is required error #353
Comments
I guess this is nothing browser related. The input field seems to stay empty when not overwriting the existing file/image/avatar, so for the validation, the "required" rule is not matched. |
Did you found a workaround for this problem? |
@StanBarrows Not really... I just disabled the "required" rule until a fix is released. |
Try use this closure instead 'required' rule:
|
Thanks @lfukumori, I'll give this a go! Also, what is the purpose of the double underscore "__" before the $attribute variable? |
The $fail() parameter is a fail message. Something like "Field is required.". The function with double underscore __() is for translate this sentence and attribute. |
Nova 1.1.4 and somewhat related—I'm also getting this error for Image fields that aren't required, but are submitted empty, regardless of previously attached images/files. Also tried adding
|
@dwyer14 I opened a new issue for that; it's a separate thing. #1050 |
I believe this issue should be fixed. Please post a new issue if the issue persists. |
Nova 1.0.8
When I try to update a resource that has an image previously attached to it, it gives an error saying "field is required."
The update form shows the thumbnail of image, but says "no file selected".
I'm able to access the resource image in my views and the file name is stored in the database, so I'm not sure why I am getting these errors. Am I missing something?
Please see screenshots:
The text was updated successfully, but these errors were encountered: