Overview of VichUploaderBundle
masterVichUploaderBundle is a Symfony bundle designed to simplify file uploads attached to ORM entities, MongoDB ODM documents, or PHPCR ODM documents.
Key features include:
- Automatic File Management: Automatically names and saves files to a configured directory.
- Entity Injection: Injects the file back into the entity/document as a
Symfony\Component\HttpFoundation\File\Fileinstance when loaded from the datastore. - Automatic Cleanup: Deletes the file from the filesystem when the associated entity or document is removed from the datastore.
- Templating Helpers: Provides helpers to generate public URLs for the uploaded files.
The bundle is fully configurable to support application-specific customization.