-
getUriPrefixdefault value is now /uploads -
delete_on_updateconfig param added. It defaults to true.
-
gaufrette and KnpGaufretteBundle are now soft dependencies
-
storageconfiguration entry added. -
web_dir_nameconfiguration entry deprecated. -
mapping:upload_dirconfiguration entry renamed tomapping:upload_destination -
mapping:uri_prefixconfiguration entry added -
The old
vich_uploader.uploaderservice has been split into two new services for a more modular, separation of concerns approach. The new services arevich_uploader.storage.gaufretteandvich_uploader.file_injector. The storage service is responsible for saving and removing files as well as resolving their path. The injector service is responsible for injectingFileinstances back into the object upon retrieval from the datastore.
-
Annotations have changed namespace from
Vich\UploaderBundle\AnnotationtoVich\UploaderBundle\Mapping\Annotation. You will need to update yourusestatement for the annotations used in your entity or document classes. -
The
mappingsconfiguration entry prototype has had a new option added to it. Theinject_on_loadconfig option specifies whether or not the uploadable fields should have an instnace ofSymfony\Component\HttpFoundation\File\Filecreated and injected into the property upon retrieval from the datastore. THis option has a default value oftrue.