sulu / SuluCommunityBundle

Community features like Login, Registration, Password forget/reset for your sulu application.
MIT License
30 stars 39 forks source link

Added contact documents upload and fixed profile without avatar #101

Closed alexander-schranz closed 6 years ago

alexander-schranz commented 6 years ago
Q A
Bug fix? yes
New feature? yes
BC breaks? no
Deprecations? no
Related PRs https://github.com/sulu/sulu/pull/4092
License MIT

What's in this PR?

Added contact documents upload and fixed profile without avatar.

Why?

Sometimes you want to allow that a community user can upload files to its contact.

Example Usage

            $builder->add(
                'medias',
                FileType::class,
                [
                    'label' => 'attendance_confirmation',
                    'mapped' => false,
                    'required' => false,
                    'multiple' => true,
                ]
            );

BC Breaks/Deprecations

Did keep the saveAvatar function to avoid any bc breaks.