Error 422 Unprocessable Content

POST https://helpinghand.nz/admin/products/new/simple

Validator calls

Path Message Invalid value Violation
data.images[0].file The file is not a valid image. Allowed types are image/jpeg, image/png, image/gif, image/webp.
Symfony\Component\HttpFoundation\File\UploadedFile {#30 …}
Symfony\Component\Validator\ConstraintViolation {#11064
  -message: "The file is not a valid image. Allowed types are image/jpeg, image/png, image/gif, image/webp."
  -messageTemplate: "sylius.image.file.allowed_mime_types"
  -parameters: [
    "%types%" => "image/jpeg, image/png, image/gif, image/webp"
  ]
  -root: Symfony\Component\Form\Form {#8516
    name: "sylius_admin_product"
    type_class: "Sylius\Bundle\AdminBundle\Form\Type\ProductType"
    data: App\Entity\Product\Product {#5909
      #id: null
      #code: "corn-chips"
      #attributes: Doctrine\Common\Collections\ArrayCollection {#5912 …}
      #variants: Doctrine\Common\Collections\ArrayCollection {#5914 …}
      #options: Doctrine\Common\Collections\ArrayCollection {#5915 …}
      #associations: Doctrine\Common\Collections\ArrayCollection {#5913 …}
      #createdAt: DateTime @1745807471 {#5911
        date: 2025-04-28 02:31:11.906171 UTC (+00:00)
      }
      #updatedAt: null
      #enabled: true
      #translations: Doctrine\Common\Collections\ArrayCollection {#5910 …}
      #translationsCache: []
      #currentLocale: "en_NZ"
      #currentTranslation: null
      #fallbackLocale: "en_NZ"
      #variantSelectionMethod: "choice"
      #productTaxons: Doctrine\Common\Collections\ArrayCollection {#5916 …}
      #channels: Doctrine\Common\Collections\ArrayCollection {#5917 …}
      #mainTaxon: App\Entity\Taxonomy\Taxon {#9981 …}
      #reviews: Doctrine\Common\Collections\ArrayCollection {#5918 …}
      #averageRating: 0.0
      #images: Doctrine\Common\Collections\ArrayCollection {#5919 …}
    }
  }
  -propertyPath: "data.images[0].file"
  -invalidValue: Symfony\Component\HttpFoundation\File\UploadedFile {#30 …}
  -plural: null
  -code: null
  -constraint: Sylius\Bundle\CoreBundle\Validator\Constraints\AllowedImageMimeTypes {#11137 …}
  -cause: null
}