Registry / web-framework / vich-uploader-bundle

vich-uploader-bundle

JSON →
library2.9.4phppackagistunverified

Ease file uploads attached to entities.

composer require vich/uploader-bundle
INSTALL
IMPORT
SIG · VICH-UPLOADER-BUND
V
vich-uploader-bundle
web-frameworkphpv2.9.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

UploadableField
use Vich\UploaderBundle\Mapping\Annotation\UploadableField;

Annotate an entity property to handle file uploads.

use Doctrine\ORM\Mapping as ORM; use Vich\UploaderBundle\Mapping\Annotation\UploadableField; #[ORM\Entity] class Product { #[UploadableField(mapping: 'product_image', fileNameProperty: 'imageName')] private ?File $imageFile = null; #[ORM\Column(nullable: true)] private ?string $imageName = null; }
Debug
Known issues
breakingRequires Symfony 5.4+ and Doctrine ORM
fix
Install Symfony and Doctrine ORM, then configure the bundle.
affects: <2.9.0
Upgrade
Version history
2.9.4latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
vich-uploader-bundle — pip install vich-uploader-bundle · libregistry