Skip to content

afe_single_upload riquiered issue #803

@rpostolov

Description

@rpostolov

Hi,

I'm sorry if maybe this issue doesn't belong here but i'm using avocod with admingenerator and both are linked so...

I try to make this field riquiered but i hav this error :

The option "required" has the value "1", but is expected to be one of ""

Here is my code in ApplyAdmingenerator.yml

lookbook1File:
        label:            Lookbook 1
        formType:         afe_single_upload
        dbType:           string
        addFormOptions:
           attr:
             accept: "image/jpeg, image/png, application/pdf"
           help:     "Only JPEG, PNG and PDF file are accepted. Maximume file size 3M"
           required: true
           deleteable:     lookbook1
           data_class:     Symfony\Component\HttpFoundation\File\File
           previewImages: true
           previewAsCanvas: true
           previewFilter: thumb_apply1

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions