Input field will be seen as a default picture.
Default picture will be automatically changed by file selected. The file will be uploaded once selected. A preview will be automatically generated once file selected / uploaded.

Input field will be seen as a default picture.
Default picture will be automatically changed by file selected. The file will be uploaded once selected. A preview will be automatically generated once file selected / uploaded.

Join this plugin team

Changelog for release 1.0.5 - 03/05/2012

Other releases

Release 1.0.5 - 03/05/2012

sfWidgetFormAvatarPlugin

Input field will be seen as a default picture.
Default picture will be automatically changed by file selected.
The file will be uploaded once selected. A preview will be automatically generated once file selected / uploaded.

Installation

Install the plugin

$ symfony plugin:install sfWidgetFormAvatarPlugin

Clear the cache

$ symfony cache:clear

Add js, css in your web folder

$ symfony plugin:publish-assets

enabled the module in your settings.yml

enabled_modules: [.., avatar]

Don't forgot to load the javascript and the stylesheet in your template