Closed l0r3nc335 closed 6 months ago
Use the attributes then
Use the attributes then
what happened to the annotation? use Vich\UploaderBundle\Mapping\Annotation as Vich;
Since 2.0, you need to do this : the new default type for mapping is "attribute". You can still use annotations, but you need an explicit definition (set "annotation" as value for "vich_uploader.metadata.type" config key)
Bug Report
Summary
Current behavior
Using pure @Vich\Uploadable and @Vich\UploadableField(mapping="images", fileNameProperty="url") Does not upload the temp file to the public/images directory.
And works if I add #[Vich\Uploadable] and #[Vich\UploadableField(mapping: 'images', fileNameProperty: 'url')] the annotation above