Skip to content

Validation error "The field must be an array." on assets field #75

@wnschroeder

Description

@wnschroeder

Hi,

when using an asset field in a form I constantly get the validation error "The field must be an array".

image

I am using a fresh installment of Statamic Pro 5.38.0 without other large addons and have just installed the livewire forms addon.
Changing anything on the asset field (mime type validation, min or max amount of files etc.) doesn't change anything. There is no difference in the behavior whether one or multiple files are uploaded.

            handle: anlagen
            field:
              container: assets
              folder: user_uploads
              type: assets
              display: Anlagen
              instructions: |-
                Diese Unterlagen zu Ihrer Finanzierungsanfrage hinzufügen – falls vorhanden:
                - Falldarstellung durch Rechtsanwalt, Klageentwurf oder Kurzgutachten
                - Außergerichtliche Korrespondenz
                - Infos zur Bonität des Anspruchsgegners
                - Sonstige relevante Unterlagen

There is also an Alpine error in the console regarding the filepond that might me related.

image

===

Update:
There even is a php exception now:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions